添加未保存警告窗口及其相关视图模型和消息类 增加了 `LectotypeMessage.cs` 文件: - 定义了 `LectotypeMessage` 类,继承自 `ValueChangedMessage<Dictionary<string,string>>`。 增加了 `NotSavedWarningViewModel.cs` 文件: - 定义了 `NotSavedWarningViewModel` 类,实现了 `INotifyPropertyChanged` 和 `IDialogResultable<bool>` 接口。 - 包含 `PropertyChanged` 事件、`OnChange` 方法、`NotSavedLectotypeList` 属性、`Result` 和 `CloseAction` 属性及 `Close` 方法。 增加了 `NotSavedWarningWindow.xaml` 文件: - 定义了未保存警告窗口的 UI,包括 `Border`、`Grid`、`StackPanel`、`TextBlock`、`ListBox` 和两个按钮。 增加了 `NotSavedWarningWindow.xaml.cs` 文件: - 定义了 `NotSavedWarningWindow` 类,包含 `ViewModel` 字段、构造函数及按钮点击事件处理方法。 |
||
---|---|---|
.. | ||
CommonMessage.cs | ||
LectotypeMessage.cs | ||
OpenDrawMessage.cs |