refactor:完成重构设备的添加,删除,更新。
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user