重构了代码
This commit is contained in:
@@ -15,6 +15,8 @@ public partial class Device : ObservableObject
|
||||
|
||||
[ObservableProperty] private bool isActive = true;
|
||||
|
||||
[ObservableProperty] private bool isAddDefVarTable = true;
|
||||
|
||||
[ObservableProperty] private bool isRuning;
|
||||
|
||||
[ObservableProperty] private string name;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace PMSWPF.Models;
|
||||
|
||||
public class DataVariable
|
||||
public class VariableData
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Name { get; set; }
|
||||
@@ -10,7 +10,7 @@ public partial class VariableTable:ObservableObject
|
||||
[ObservableProperty] private string description;
|
||||
|
||||
public ProtocolType ProtocolType { get; set; }
|
||||
public List<DataVariable> DataVariables { get; set; }
|
||||
public List<VariableData> DataVariables { get; set; }
|
||||
[ObservableProperty]
|
||||
private bool isActive;
|
||||
public int? DeviceId { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user