完成设备详情页添加变量表
This commit is contained in:
@@ -484,12 +484,12 @@ public partial class DataServices : ObservableRecipient, IRecipient<LoadMessage>
|
||||
{
|
||||
if (variableTableItemViewModel == null)
|
||||
return;
|
||||
|
||||
VariableTables.Add(variableTableItemViewModel);
|
||||
|
||||
var device = Devices.FirstOrDefault(d => d.Id == variableTableItemViewModel.DeviceId);
|
||||
if (device != null)
|
||||
{
|
||||
device.VariableTables.Add(variableTableItemViewModel);
|
||||
VariableTables.Add(variableTableItemViewModel);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@ namespace DMS.WPF.Services
|
||||
{
|
||||
{ typeof(DeviceDialogViewModel), typeof(DeviceDialog) },
|
||||
{ typeof(ConfrimDialogViewModel), typeof(ConfirmDialog) },
|
||||
{ typeof(VariableTableDialogViewModel), typeof(VariableTableDialog) },
|
||||
// { typeof(MqttDialogViewModel), typeof(MqttDialog) }, // Add other mappings here
|
||||
// ... other dialogs
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user