BaseHardware.cs 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using System.ComponentModel;
  2. using System.Xml.Serialization;
  3. namespace HardwareConfig
  4. {
  5. [XmlInclude(typeof(LeadShineMCardHardConfig))]
  6. [XmlInclude(typeof(ACSMCardHardConfig))]
  7. [XmlInclude(typeof(APEMCardHardConfig))]
  8. [XmlInclude(typeof(LeadShinewIOCardHardConfig))]
  9. [XmlInclude(typeof(APEIOCardHardConfig))]
  10. [XmlInclude(typeof(MCardAxisGroupHardConfig))]
  11. [XmlInclude(typeof(FinsTCPPLCHC))]
  12. [XmlInclude(typeof(FinsSeriePortPLCHardConfig))]
  13. [XmlInclude(typeof(MXPLCHC))]
  14. [XmlInclude(typeof(PLCAxisGroupHardConfig))]
  15. [XmlInclude(typeof(MitRobotHC))]
  16. [XmlInclude(typeof(APERobotHC))]
  17. [XmlInclude(typeof(ToshibaRobotHC))]
  18. [XmlInclude(typeof(EpsonRobotHC))]
  19. [XmlInclude(typeof(GluePlatHardConfig))]
  20. [XmlInclude(typeof(ValveHC))]
  21. [XmlInclude(typeof(SeriesAtti))]
  22. [XmlInclude(typeof(DatabaseHardConfig))]
  23. [XmlInclude(typeof(SocketAtti))]
  24. public class BaseHardware : IBaseHardware
  25. {
  26. [Category("A类型")]
  27. [ReadOnly(false)]
  28. public HardwareTypeEnum HardwareType { get; set; }
  29. [Browsable(false)]
  30. public HardwareNameEnum HardwareName { get; set; }
  31. [Browsable(false)]
  32. public string Key { get; set; }
  33. [Category("参数")]
  34. public bool Enable { get; set; } = true;
  35. }
  36. }