Commit Graph

4 Commits

Author SHA1 Message Date
lihanbo 6b23a07076 105040 Update 增加注释说明 2025-04-03 17:30:50 +08:00
lihanbo ab5345b1b8 105040 Update 优化提示窗口 2025-01-24 11:27:31 +08:00
lihanbo ea476590da 105040 Update 增加数据丢失提示 2025-01-24 08:46:21 +08:00
lihanbo 860ce040ed 105040 Update 关闭窗口时增加提示,未保存电机数据是否丢弃
添加未保存警告窗口及其相关视图模型和消息类

增加了 `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` 字段、构造函数及按钮点击事件处理方法。
2025-01-23 17:06:34 +08:00