コード例 #1
0
        public Task SetLedState(IDeviceLed deviceLed, DeviceLedState ledState)
        {
            McLedState xTouchLedState = AsMcLedState(ledState);

            return(Task.Run(() => base.SetButtonLed(XTouchMiniMcButton.Controls[(byte)deviceLed.Id], xTouchLedState)));
        }
コード例 #2
0
 private static McLedState AsMcLedState(DeviceLedState ledState) => ledState switch
 {
コード例 #3
0
 public Task SetLedState(IDeviceLed deviceLed, DeviceLedState ledState) => throw new NotSupportedException();