using System.ComponentModel; namespace HardwareConfig { [TypeConverter(typeof(ExpandableObjectConverter))] public interface IBaseHardware { [Browsable(false)] [ReadOnly(false)] HardwareNameEnum HardwareName { get; set; } [ReadOnly(false)] HardwareTypeEnum HardwareType { get; set; } [Browsable(false)] string Key { get; set; } bool Enable { get; set; } } public enum HardwareNameEnum { 雷赛运动控制卡, APE运动控制卡, ACS运动控制卡, MC轴组, PLC轴组, 雷赛IO卡, APEIO卡, 欧姆龙串口PLC, 欧姆龙网口PLC, 三菱QPLC, APE机械手, 三菱机械手, 东芝机械手, 爱普森机械手, 点胶平台, 点胶阀, 数据库, 网口, 串口, } public enum HardwareTypeEnum { 运动控制卡, MC轴组, PLC轴组, IO卡, PLC, 机械手, 相机, 点胶平台, 点胶阀, 数据库, 网口, 串口, } }