diff --git a/Models/ReportFile.cs b/Models/ReportFile.cs index 00fe9b3..716f7e6 100644 --- a/Models/ReportFile.cs +++ b/Models/ReportFile.cs @@ -60,7 +60,13 @@ class ReportFile : ChangeNotifier public string FilePath { get => _filePath; - set { _filePath = value; NotifyPropertyChanged(); } + set + { + _filePath = value; + NotifyPropertyChanged(); + NotifyPropertyChanged(nameof(FileName)); + NotifyPropertyChanged(nameof(IsFileFoundOnDisk)); + } } [JsonIgnore] @@ -68,4 +74,9 @@ class ReportFile : ChangeNotifier { get => Path.GetFileName(_filePath); } + + public bool IsFileFoundOnDisk + { + get => File.Exists(FilePath); + } } \ No newline at end of file