namespace JinYuan.Models { // 变量配置模型 public class VariableConfig { public string _varName; public string VarName { get => _varName; set { if (_varName == value) return; _varName = value; } } public string _varAddress; public string VarAddress { get => _varAddress; set { if (_varAddress == value) return; _varAddress = value; } } public string _start; public string Start { get => _start; set { if (_start == value) return; _start = value; } } public string _dataType; public string DataType { get => _dataType; set { if (_dataType == value) return; _dataType = value; } } public int _offsetOrLength; public int OffsetOrLength { get => _offsetOrLength; set { if (_offsetOrLength == value) return; _offsetOrLength = value; } } /// /// PLC编号 /// private int _plcNum; public int PlcNum { get => _plcNum; set { if (_plcNum == value) return; _plcNum = value; } } /// /// 通信组 /// private string _groupName; public string GroupName { get => _groupName; set { if (_groupName == value) return; _groupName = value; } } private string _remark; public string Remark { get => _remark; set { if (_remark == value) return; _remark = value; } } } }