Exemple #1
0
 private void Clock_TimeIsUp(object sender, TomatoClock.TimeIsUpEventArgs e)
 {
     // clock.ClockCountChanged -= Clock_ClockCountChanged;
     clock.RemainSecondsChanged -= Clock_RemainSecondsChanged;
     // clock.ResetTimer -= Clock_ResetTimer;
     clock.TimeIsUp -= Clock_TimeIsUp;
     this.Invoke(new Action(closeWindow));
 }
 private void Clock_TimeIsUp(object sender, TomatoClock.TimeIsUpEventArgs e)
 {
     if (e.tomatoTimeIsUp)
     {
         // show break notification
         this.Invoke(new Action(() => {
             new FrmNotice(clock).Show();
         }));
         // MessageBox.Show("Break time");
     }
     else
     {
         // show back to work nofication
     }
 }