修改了添加设备界面和变量表界面
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
using System.Collections.ObjectModel;
|
||||
using CommunityToolkit.Mvvm.ComponentModel;
|
||||
using PMSWPF.Models;
|
||||
|
||||
@@ -7,7 +8,14 @@ partial class VariableTableViewModel : ViewModelBase
|
||||
{
|
||||
[ObservableProperty]
|
||||
private VariableTable variableTable;
|
||||
[ObservableProperty]
|
||||
private ObservableCollection<DataVariable> _dataVariables;
|
||||
|
||||
public override void OnLoaded()
|
||||
{
|
||||
if (VariableTable.DataVariables!=null )
|
||||
{
|
||||
_dataVariables = new ObservableCollection<DataVariable>(VariableTable.DataVariables);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user