private void BreakStart()
 {
     buttonBreakNow.Enabled = false;
     Microbreak.SetEndOfCurrentBreak();
     formReminder = new FormReminder(this);
     formReminder.Show();
     Microbreak._microbreakInProgress = true;
     timerMicrobreak.Stop();
 }
Beispiel #2
0
 private void timerMicrobreak_Tick(object sender, EventArgs e)
 {
     if (_nextBreak <= DateTime.Now && !_microbreakInProgress)
     {
         buttonBreakNow.Enabled = false;
         SetEndOfCurrentBreak();
         formReminder = new FormReminder(this);
         formReminder.Show();
         _microbreakInProgress = true;
         timerMicrobreak.Stop();
     }
     UpdateTimeUntilNextBreak();
 }