private void BreakPage_Load(object sender, EventArgs e) { Taskbar.Show(); BreakTimerLabel.Text = minutesLeft + ":" + secondsLeft.ToString().PadLeft(2, '0'); BreakTimer.Start(); }
private void CompleteDoro() { Timer.Stop(); Tick(new DoroTimerEvent(DoroTimerEvent.FINISHED_DORO, Doros[CurrentPosition])); if (CurrentPosition + 1 == Doros.Count) { Tick(new DoroTimerEvent(DoroTimerEvent.FINISHED, null)); IsRunning = false; return; } BreakStartTime = DateTime.Now; BreakTimer.Interval = Doros[CurrentPosition].BreakDuration; BreakTimer.Start(); IsBreak = true; }