From 460da5dda84dbbdc2806750d52157ab942f99b12 Mon Sep 17 00:00:00 2001 From: Michael Babienco Date: Tue, 17 Feb 2026 13:24:04 +0900 Subject: [PATCH] Add ReportFile.IsFileFoundOnDisk --- Models/ReportFile.cs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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