public TrayIcon(IconChanger iconChanger) { _iconState = new MicIcon.Startup(); IconChanger += iconChanger; _animationTimer = new Timer(); _animationTimer.Interval = 2000; _animationTimer.Tick += SetCurrentIcon; _animationTimer.Enabled = true; }
private void btnMicOffOn(object sender, RoutedEventArgs e) { this.MicrophoneEnabled = !MicrophoneEnabled; Softphone.MicrophoneEnabled = MicrophoneEnabled; if (MicrophoneEnabled) { InvokeGUIThread(() => { MicIcon.SetResourceReference(System.Windows.Controls.Image.SourceProperty, "mic_on"); }); } else { InvokeGUIThread(() => { MicIcon.SetResourceReference(System.Windows.Controls.Image.SourceProperty, "mic_off"); }); } }
public void SetMutedWarning() { _iconState = new MicIcon.MutedWarning(); SetIcon(); }
public void SetUnmuted() { _iconState = new MicIcon.Unmuted(); SetIcon(); }
public void SetStartup() { _iconState = new MicIcon.Startup(); SetIcon(); }