using Aurora.Api.Devices; using PropertyTools.DataAnnotations; using System.IO.Ports; namespace AuroraLight.ALT { public enum eALTLightType { Light_4CH = 4, Light_8CH = 8 } public class ALTLightConfig : LightConfig { [SelectorStyle(SelectorStyle.ComboBox)] public eALTLightType LightType { get; set; } public ALTLightConfig() { LightType = eALTLightType.Light_8CH; ConnConfig = new SerialConnConfig() { PortNum = 1, BaudRate = 19200, Parity = Parity.None, StopBits = StopBits.One, DataBits = 8, ReadTimeout = 500 }; } public static new ALTLightConfig GetDefaultConfig() { var config = new ALTLightConfig(); config.ConnConfig = new SerialConnConfig() { PortNum = 1, BaudRate = 19200, Parity = Parity.None, StopBits = StopBits.One, DataBits = 8, ReadTimeout = 500 }; return config; } } }