refactor:完成重构设备的添加,删除,更新。

This commit is contained in:
2025-10-22 14:06:16 +08:00
parent e995ec7207
commit 54d040b45f
76 changed files with 1028 additions and 1161 deletions

View File

@@ -21,7 +21,7 @@ namespace DMS.WPF.ViewModels.Dialogs
{
private readonly IDialogService _dialogService;
private readonly IWpfDataService _dataStorageService;
private readonly IViewDataService _viewDataService;
private readonly INotificationService _notificationService;
[ObservableProperty]
@@ -39,11 +39,11 @@ namespace DMS.WPF.ViewModels.Dialogs
public TriggerDialogViewModel(
IDialogService dialogService,
IWpfDataService dataStorageService,
IViewDataService dataStorageService,
INotificationService notificationService)
{
_dialogService = dialogService ?? throw new ArgumentNullException(nameof(dialogService));
_dataStorageService = dataStorageService;
_viewDataService = dataStorageService;
_notificationService = notificationService ?? throw new ArgumentNullException(nameof(notificationService));
}