refactor:完成重构设备的添加,删除,更新。
This commit is contained in:
@@ -21,9 +21,9 @@ namespace DMS.WPF.ViewModels;
|
||||
/// </summary>
|
||||
public partial class MqttsViewModel : ViewModelBase
|
||||
{
|
||||
private readonly IWPFDataService _wpfDataService;
|
||||
private readonly IViewCenterService _wpfDataService;
|
||||
private readonly IMqttAppService _mqttAppService;
|
||||
private readonly IWpfDataService _dataStorageService;
|
||||
private readonly IViewDataService _viewDataService;
|
||||
private readonly IMapper _mapper;
|
||||
private readonly IDialogService _dialogService;
|
||||
private readonly INavigationService _navigationService;
|
||||
@@ -47,9 +47,9 @@ public partial class MqttsViewModel : ViewModelBase
|
||||
public MqttsViewModel(
|
||||
ILogger<MqttsViewModel> logger,
|
||||
IDialogService dialogService,
|
||||
IWPFDataService wpfDataService,
|
||||
IViewCenterService wpfDataService,
|
||||
IMqttAppService mqttAppService,
|
||||
IWpfDataService dataStorageService,
|
||||
IViewDataService dataStorageService,
|
||||
IMapper mapper,
|
||||
INavigationService navigationService,
|
||||
INotificationService notificationService
|
||||
@@ -59,13 +59,13 @@ public partial class MqttsViewModel : ViewModelBase
|
||||
_dialogService = dialogService;
|
||||
_wpfDataService = wpfDataService;
|
||||
_mqttAppService = mqttAppService;
|
||||
_dataStorageService = dataStorageService;
|
||||
_viewDataService = dataStorageService;
|
||||
_mapper = mapper;
|
||||
_navigationService = navigationService;
|
||||
_notificationService = notificationService;
|
||||
|
||||
|
||||
_mqttServeise = _dataStorageService.MqttServers.ToNotifyCollectionChanged(x=>x.Value);
|
||||
_mqttServeise = _viewDataService.MqttServers.ToNotifyCollectionChanged(x=>x.Value);
|
||||
}
|
||||
|
||||
[RelayCommand]
|
||||
|
||||
Reference in New Issue
Block a user