Add ReportFile.IsFileFoundOnDisk

This commit is contained in:
2026-02-17 13:24:04 +09:00
parent b3b9aa5c79
commit 460da5dda8
+12 -1
View File
@@ -60,7 +60,13 @@ class ReportFile : ChangeNotifier
public string FilePath public string FilePath
{ {
get => _filePath; get => _filePath;
set { _filePath = value; NotifyPropertyChanged(); } set
{
_filePath = value;
NotifyPropertyChanged();
NotifyPropertyChanged(nameof(FileName));
NotifyPropertyChanged(nameof(IsFileFoundOnDisk));
}
} }
[JsonIgnore] [JsonIgnore]
@@ -68,4 +74,9 @@ class ReportFile : ChangeNotifier
{ {
get => Path.GetFileName(_filePath); get => Path.GetFileName(_filePath);
} }
public bool IsFileFoundOnDisk
{
get => File.Exists(FilePath);
}
} }