ushort GetColor(Tcc2DeviceHandler.eLedColor value) { switch (value) { case Tcc2DeviceHandler.eLedColor.LightGreen: return(0); case Tcc2DeviceHandler.eLedColor.Green: return(1); case Tcc2DeviceHandler.eLedColor.Blue: return(2); case Tcc2DeviceHandler.eLedColor.Red: return(3); case Tcc2DeviceHandler.eLedColor.Yellow: return(4); case Tcc2DeviceHandler.eLedColor.Orange: return(5); case Tcc2DeviceHandler.eLedColor.Cyan: return(6); case Tcc2DeviceHandler.eLedColor.Pink: return(7); default: return(0); } }
/// <summary> /// Event args for the DeviceHandler class /// </summary> public Tcc2DeviceEventArgs(eTcc2DeviceEventType type, Tcc2DeviceHandler.eLedColor value) { EventType = type; LedColor = value; }