protected void MinuteTimer_Elapsed(object sender, ElapsedEventArgs e) { MinuteCountDown--; OnMinuteElapsedEvent(new MinuteElapsedEventArgs(MinuteCountDown)); if (MinuteCountDown > 0) { MinuteTimer.Start(); } }
public void Start(double milisecondsLeftOnMinuteTimer, TimeSpan totalPauseTimeSpan) { TotalPauseTimeSpan = totalPauseTimeSpan; MinuteTimer.Interval = milisecondsLeftOnMinuteTimer; MinuteTimer.Start(); }