Example #1
0
 public TimerOptions()
 {
     _timerTime = new TimeSpan(0, 0, 0);
     NotifyOfPropertyChange(() => TimerTime);
     TextTime         = "05:00";
     CanShow          = true;
     ToggleTimerText  = START;
     CountUp          = false;
     ResetTimer       = true;
     BTimer           = new BingoTimer(0);
     BTimer.LocalTime = "00:00:00";
 }
Example #2
0
 public void StartTimer()
 {
     if (ResetTimer)
     {
         if (CountUp)
         {
             BTimer = new BingoTimer(0);
         }
         else
         {
             BTimer = new BingoTimer((int)TimerTime.TotalSeconds);
         }
         BTimer.InitializeNewCountDownTimer();
         BTimer.TimerStart();
         ResetTimer            = false;
         BTimer.IsTimerStarted = true;
     }
     else
     {
         BTimer.TimerStart();
         BTimer.IsTimerStarted = true;
     }
     ToggleTimerText = STOP;
 }