public void Init() { m_EVOLedColorList.Clear(); for (int i = 0; i < 7; i++) { EVOLedColor tmp = new EVOLedColor(); tmp.ColorNB = (byte)i; tmp.Color.RED = 255; tmp.Color.GREEN = 255; tmp.Color.BLUE = 255; m_EVOLedColorList.Add(tmp); } }
public void Modify(EVOLedColor a) { EVOLedColor tmp = m_EVOLedColorList.First(c => c.ColorNB == a.ColorNB); if (tmp != null) { tmp.Color.RED = a.Color.RED; tmp.Color.GREEN = a.Color.GREEN; tmp.Color.BLUE = a.Color.BLUE; } else { throw new EVOException("Error:002"); } }
public M2BLedClrSet(byte OperationCmd) { this.OperationCmd = OperationCmd; setcolor = new EVOLedColor(); }