Пример #1
0
 private void updateKeyboardStatus(AudioSwitcher.AudioApi.IDevice device)
 {
     if (chroma.Initialized)
     {
         chroma.Keyboard.SetCustomAsync(device.IsMuted ? this.muted : this.unmuted);
     }
 }
Пример #2
0
 public void UpdateStatus(AudioSwitcher.AudioApi.IDevice device)
 {
     if (device != null)
     {
         UpdateIcon(device.IsMuted ? iconOff : iconOn, device.FullName);
         updateKeyboardStatus(device);
     }
     else
     {
         UpdateIcon(iconError, "< No device >");
     }
 }
Пример #3
0
 public void UpdateDevice(AudioSwitcher.AudioApi.IDevice device)
 {
     muteChangedSubscription?.Dispose();
     muteChangedSubscription = device?.MuteChanged.Subscribe(OnMuteChanged);
     UpdateStatus(device);
 }