| | |
| | | [DisplayName("触发值")] |
| | | public int TriggerValue { get; set; } = -1; |
| | | |
| | | ///// <summary> |
| | | ///// 传入数据地址的索引 按照监听地址从0开始的索引集合 |
| | | ///// </summary> |
| | | //[Category("监听设置")] |
| | | //[Description("传入数据地址的索引 按照监听地址从0开始的索引")] |
| | | //[DisplayName("传入数据索引")] |
| | | //[TypeConverter(typeof(SimpleCollectionConvert<int>))] |
| | | //public List<int> InputDataIndex { get; set; } = new List<int>(); |
| | | |
| | | /// <summary> |
| | | /// 监听回传 |
| | | /// </summary> |
| | |
| | | } |
| | | } |
| | | |
| | | FrmOpConfigEdit frm = new FrmOpConfigEdit(ms.MethodCode, ms.Id, value as IOperationConfig) |
| | | FrmDeviceOpConfigEditor frmDeviceOpEditor = new FrmDeviceOpConfigEditor(new DeviceOpBind() { Device = ms.InvokeDevice, OpConfig = value as IOperationConfig }, false) |
| | | { |
| | | StartPosition = FormStartPosition.CenterScreen |
| | | }; |
| | | if (frm.ShowDialog() == DialogResult.OK) |
| | | { |
| | | return frm.OpConfig; |
| | | } |
| | | else |
| | | { |
| | | return frm.BackupConfig; |
| | | } |
| | | frmDeviceOpEditor.ShowDialog(); |
| | | frmDeviceOpEditor.Bind.OpConfig.MonitorSetId = ms.Id; |
| | | frmDeviceOpEditor.Bind.OpConfig.DeviceId = ms.InvokeDevice; |
| | | |
| | | return frmDeviceOpEditor.Bind.OpConfig; |
| | | //FrmOpConfigEdit frm = new FrmOpConfigEdit(ms.MethodCode, ms.Id, value as IOperationConfig) |
| | | //{ |
| | | // StartPosition = FormStartPosition.CenterScreen |
| | | //}; |
| | | //if (frm.ShowDialog() == DialogResult.OK) |
| | | //{ |
| | | // return frm.OpConfig; |
| | | //} |
| | | //else |
| | | //{ |
| | | // return frm.BackupConfig; |
| | | //} |
| | | } |
| | | |
| | | return base.EditValue(context, provider, value); |