Esempio n. 1
0
        private void UpdateUI()
        {
            buttonConfigure.Sensitive = deviceComboboxWidget.SelectedBlinkStick != null && deviceComboboxWidget.SelectedBlinkStick.Led != null;
            buttonDelete.Sensitive    = deviceComboboxWidget.SelectedBlinkStick != null && deviceComboboxWidget.SelectedBlinkStick.Led == null;
            blinkstickinfowidget2.UpdateUI(deviceComboboxWidget.SelectedBlinkStick);

            blinkstickemulatorwidget1.EmulatedDevice = deviceComboboxWidget.SelectedBlinkStick == null ?
                                                       BlinkStickDeviceEnum.Unknown : deviceComboboxWidget.SelectedBlinkStick.BlinkStickDevice;
        }
Esempio n. 2
0
 public void UpdateUI()
 {
     buttonConfigure.Sensitive = DataModel.Devices.Count > 0 && DataModel.Devices[0].Led != null;
     blinkstickinfowidget2.UpdateUI(DataModel.Devices[0]);
 }