Пример #1
0
 public void RefreshMicList(object sender, EventArgs e)
 {
     _mic.Dispose();
     _mic = new DgMic();
     _mic.OnVolumeNotification += _mic_OnVolumeNotification;
     IsMuted = Settings.IsMuted; // reassert the muted state on the new set of mics
 }
Пример #2
0
 public NotifyIconViewModel()
 {
     IconPath = @"res\microphone_unmuted.ico";
     _mic     = new DgMic();
     _mic.OnVolumeNotification += _mic_OnVolumeNotification;
     ExitApplicationCommand     = new RelayCommand(ExitApplication);
     ForkOnGitHubCommand        = new RelayCommand(ForkOnGithub);
     OpenSettingsWindowCommand  = new RelayCommand(OpenSettingsWindow);
 }