using System.Collections.ObjectModel; using System.ComponentModel; using CommunityToolkit.Mvvm.ComponentModel; using PMSWPF.Enums; namespace PMSWPF.Models; /// /// 表示变量表信息。 /// public partial class VariableTable : ObservableObject { /// /// 变量表关联的设备。 /// public Device? Device { get; set; } /// /// 变量表关联的设备ID。 /// public int? DeviceId { get; set; } /// /// 变量表描述。 /// [ObservableProperty] private string description; /// /// 变量表中包含的数据变量列表。 /// [ObservableProperty] public ObservableCollection variables; /// /// 变量表的唯一标识符。 /// public int Id { get; set; } /// /// 表示变量表是否处于活动状态。 /// [ObservableProperty] private bool isActive; /// /// 变量表名称。 /// [ObservableProperty] private string name; /// /// 变量表使用的协议类型。 /// public ProtocolType ProtocolType { get; set; } }