Esempio n. 1
0
 public RoundSerializable(Round round)
 {
     this.RoundTime = XmlConvert.ToString(round.RoundTime);
     this.RestTime = XmlConvert.ToString(round.RestTime);
 }
Esempio n. 2
0
 public void StopCurrentRound()
 {
     _timer.Stop();
     ResetRoundTime();
     _round = null;
 }
 public RoundEndedEventArgs(Round lastRound)
 {
     LastRound = lastRound;
 }
Esempio n. 4
0
        public void StartRound(Round round)
        {
            if (round == null)
                throw new ArgumentNullException("round");

            _round = round;
            InvokePropertyChanged("RestTimeLeft");
            InvokePropertyChanged("RoundTimeLeft");
            _timer.Start();
        }