Exemple #1
0
 /// <summary>
 /// Called from the GUI once one second has passed with an active timer
 /// </summary>
 public void timerTick()
 {
     timeLeft--;
     if (timeLeft >= 0)
     {
         view.updateTimer(String.Format("{0:00} min {1:00} sec", timeLeft / 60, timeLeft % 60));
     }
     else  //Om tiden går ut
     {
         view.hideAndStopTimer();
     }
 }