コード例 #1
0
ファイル: TrayIcon.cs プロジェクト: bradrhodes/Muffle
        public TrayIcon(IconChanger iconChanger)
        {
            _iconState = new MicIcon.Startup();

            IconChanger += iconChanger;

            _animationTimer          = new Timer();
            _animationTimer.Interval = 2000;
            _animationTimer.Tick    += SetCurrentIcon;
            _animationTimer.Enabled  = true;
        }
コード例 #2
0
ファイル: MainWindow.xaml.cs プロジェクト: ping203/SipClient
        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");
                });
            }
        }
コード例 #3
0
ファイル: TrayIcon.cs プロジェクト: bradrhodes/Muffle
 public void SetMutedWarning()
 {
     _iconState = new MicIcon.MutedWarning();
     SetIcon();
 }
コード例 #4
0
ファイル: TrayIcon.cs プロジェクト: bradrhodes/Muffle
 public void SetUnmuted()
 {
     _iconState = new MicIcon.Unmuted();
     SetIcon();
 }
コード例 #5
0
ファイル: TrayIcon.cs プロジェクト: bradrhodes/Muffle
 public void SetStartup()
 {
     _iconState = new MicIcon.Startup();
     SetIcon();
 }