using System.ComponentModel; using System.Xml.Serialization; namespace HardwareConfig { [XmlInclude(typeof(LeadShineMCardHardConfig))] [XmlInclude(typeof(ACSMCardHardConfig))] [XmlInclude(typeof(APEMCardHardConfig))] [XmlInclude(typeof(LeadShinewIOCardHardConfig))] [XmlInclude(typeof(APEIOCardHardConfig))] [XmlInclude(typeof(MCardAxisGroupHardConfig))] [XmlInclude(typeof(FinsTCPPLCHC))] [XmlInclude(typeof(FinsSeriePortPLCHardConfig))] [XmlInclude(typeof(MXPLCHC))] [XmlInclude(typeof(PLCAxisGroupHardConfig))] [XmlInclude(typeof(MitRobotHC))] [XmlInclude(typeof(APERobotHC))] [XmlInclude(typeof(ToshibaRobotHC))] [XmlInclude(typeof(EpsonRobotHC))] [XmlInclude(typeof(GluePlatHardConfig))] [XmlInclude(typeof(ValveHC))] [XmlInclude(typeof(SeriesAtti))] [XmlInclude(typeof(DatabaseHardConfig))] [XmlInclude(typeof(SocketAtti))] public class BaseHardware : IBaseHardware { [Category("A类型")] [ReadOnly(false)] public HardwareTypeEnum HardwareType { get; set; } [Browsable(false)] public HardwareNameEnum HardwareName { get; set; } [Browsable(false)] public string Key { get; set; } [Category("参数")] public bool Enable { get; set; } = true; } }