Esempio n. 1
0
        protected void MinuteTimer_Elapsed(object sender, ElapsedEventArgs e)
        {
            MinuteCountDown--;

            OnMinuteElapsedEvent(new MinuteElapsedEventArgs(MinuteCountDown));

            if (MinuteCountDown > 0)
            {
                MinuteTimer.Start();
            }
        }
Esempio n. 2
0
 public void Start(double milisecondsLeftOnMinuteTimer, TimeSpan totalPauseTimeSpan)
 {
     TotalPauseTimeSpan   = totalPauseTimeSpan;
     MinuteTimer.Interval = milisecondsLeftOnMinuteTimer;
     MinuteTimer.Start();
 }