Esempio n. 1
0
 private void StopDoWorkNotification()
 {
     isNotificationSending = false;
     BlinkWindow.StopFlashingWindow(this);
     bgBlinkThread.Abort();
     Background            = commonBackgroundBrush;
     StateTImer.Foreground = commonTextBrush;
     try { notiSound.Stop(); }
     catch { }
 }
Esempio n. 2
0
 private void DoWorkNotification()
 {
     isNotificationSending = true;
     BlinkWindow.FlashWindow(this);
     bgBlinkThread = new Thread(new ThreadStart(delegate
     {
         while (true)
         {
             runOnUIThread(delegate
             {
                 this.Background            = _accentTick? accentBackgroundBrush : commonBackgroundBrush;
                 this.StateTImer.Foreground = _accentTick? commonTextBrush : accentTextBrush;
                 _accentTick = !_accentTick;
             });
             Thread.Sleep(300);
         }
     }));
     bgBlinkThread.Start();
     try { notiSound.PlaySync(); }
     catch { }
 }