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

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