| | |
| | | public List<IMonitorSet> GetAllMonitorSet() |
| | | { |
| | | WarningSetCollection.ForEach(m => m.Source = this.Name); |
| | | |
| | | MonitorSetCollection.ForEach(m => m.SourceDevice = this.Id); |
| | | return MonitorSetCollection; |
| | | } |
| | |
| | | |
| | | [Device("MotionCardBase", "板卡操作配置基类", EnumHelper.DeviceAttributeType.OperationConfig)] |
| | | public class MotionCardOperationConfigBase : OperationConfigBase, IComplexDisplay |
| | | { |
| | | [Category("板卡操作")] |
| | | [Description("板卡操作配置基类集合,依次执行")] |
| | | [TypeConverter(typeof(CollectionCountConvert))] |
| | | [Editor(typeof(ComplexCollectionEditor<MotionCardOperationConfigBase>), typeof(UITypeEditor))] |
| | | public List<MotionCardOperationSet> OperationCollection { get; set; } = new List<MotionCardOperationSet>(); |
| | | |
| | | public string GetDisplayText() |
| | | { |
| | | return string.Join(" ", OperationCollection.Select(u => u.GetDisplayText())); |
| | | } |
| | | } |
| | | |
| | | public class MotionCardOperationSet : IComplexDisplay |
| | | { |
| | | [Category("IO操作配置")] |
| | | [DisplayName("IO预检查定义集合")] |
| | |
| | | } |
| | | } |
| | | |
| | | [Device("MotionCardOperationConfigCollection", "板卡操作配置基类集合", EnumHelper.DeviceAttributeType.OperationConfig)] |
| | | public class MotionCardOperationConfigCollection : OperationConfigBase |
| | | { |
| | | [Category("复位操作")] |
| | | [Description("板卡操作配置基类集合,依次执行")] |
| | | [TypeConverter(typeof(CollectionCountConvert))] |
| | | [Editor(typeof(ComplexCollectionEditor<MotionCardOperationConfigBase>), typeof(UITypeEditor))] |
| | | public List<MotionCardOperationConfigBase> MotionCardOpsCollection { get; set; } = new List<MotionCardOperationConfigBase>(); |
| | | } |
| | | //[Device("MotionCardOperationConfigCollection", "板卡操作配置基类集合", EnumHelper.DeviceAttributeType.OperationConfig)] |
| | | //public class MotionCardOperationConfigCollection : OperationConfigBase |
| | | //{ |
| | | // [Category("复位操作")] |
| | | // [Description("板卡操作配置基类集合,依次执行")] |
| | | // [TypeConverter(typeof(CollectionCountConvert))] |
| | | // [Editor(typeof(ComplexCollectionEditor<MotionCardOperationConfigBase>), typeof(UITypeEditor))] |
| | | // public List<MotionCardOperationConfigBase> MotionCardOpsCollection { get; set; } = new List<MotionCardOperationConfigBase>(); |
| | | //} |
| | | |
| | | public class IORefrenceItemCollectionEditor : CollectionEditor |
| | | { |