automapper框架优化
This commit is contained in:
@@ -28,7 +28,7 @@ namespace SettingModule.ViewModels
|
||||
set => SetProperty(ref _testStatus, value);
|
||||
}
|
||||
|
||||
public DeviceInfoModel? SelectedDevice
|
||||
public DeviceInfoVM? SelectedDevice
|
||||
{
|
||||
get => _selectedDevice;
|
||||
set
|
||||
@@ -40,7 +40,7 @@ namespace SettingModule.ViewModels
|
||||
}
|
||||
}
|
||||
|
||||
public ObservableCollection<DeviceInfoModel> DeviceList
|
||||
public ObservableCollection<DeviceInfoVM> DeviceList
|
||||
{
|
||||
get => _deviceList;
|
||||
set => SetProperty(ref _deviceList, value);
|
||||
@@ -70,8 +70,8 @@ namespace SettingModule.ViewModels
|
||||
private GlobalInfo _globalInfo { get; }
|
||||
private bool IsInitiated = false;
|
||||
private string _testStatus = string.Empty;
|
||||
private DeviceInfoModel? _selectedDevice;
|
||||
private ObservableCollection<DeviceInfoModel> _deviceList;
|
||||
private DeviceInfoVM? _selectedDevice;
|
||||
private ObservableCollection<DeviceInfoVM> _deviceList;
|
||||
private string _statusMessage = "请在左侧选择设备查看 / 编辑配置";
|
||||
#endregion
|
||||
public SettingViewModel(IContainerExtension container) : base(container)
|
||||
|
||||
Reference in New Issue
Block a user