Ejemplo n.º 1
0
 public void StartNewRound()
 {
     currentTime = stopWatch;
     dojoTeam.GetNextTeamMembers();
     stopWatch.StartRound(roundTime);
     timer.Start();
     UpdateCurrentTime();
 }
Ejemplo n.º 2
0
        public Dojo()
        {
            roundTime.SetTime(new TimeSpan(0, 8, 0));
            roundTime.TimeChanged    += (sender, args) => UpdateCurrentTime();
            stopWatch.TimeChanged    += (sender, args) => UpdateCurrentTime();
            dojoTeam.PropertyChanged += (sender, args) => UpdateTeamMembers();
            currentTime = roundTime;
            timer       = new DojoUpdatingTimer(stopWatch, 1000.0);

            dojoTeam.Queue.Enqueue(new Coder("Albert Weinert"));
            dojoTeam.Queue.Enqueue(new Coder("Ilker Cetinkaya"));
            dojoTeam.Queue.Enqueue(new Coder("Christina Hirth"));
            dojoTeam.Queue.Enqueue(new Coder("Christian Deger"));
        }
Ejemplo n.º 3
0
        public Dojo()
        {
            roundTime.SetTime(new TimeSpan(0, 8, 0));
            roundTime.TimeChanged += (sender, args) => UpdateCurrentTime();
            stopWatch.TimeChanged += (sender, args) => UpdateCurrentTime();
            dojoTeam.PropertyChanged += (sender, args) => UpdateTeamMembers();
            currentTime = roundTime;
            timer = new DojoUpdatingTimer(stopWatch, 1000.0);

            dojoTeam.Queue.Enqueue(new Coder("Albert Weinert"));
            dojoTeam.Queue.Enqueue(new Coder("Ilker Cetinkaya"));
            dojoTeam.Queue.Enqueue(new Coder("Christina Hirth"));
            dojoTeam.Queue.Enqueue(new Coder("Christian Deger"));
        }
 public void StartRound(IDojoTime dojoTime)
 {
     currentTime = DateTime.Now;
     endTime     = currentTime.Add(dojoTime.Time);
     OnTimeChanged();
 }
Ejemplo n.º 5
0
 public void StartNewRound()
 {
     currentTime = stopWatch;
     dojoTeam.GetNextTeamMembers();
     stopWatch.StartRound(roundTime);
     timer.Start();
     UpdateCurrentTime();
 }
Ejemplo n.º 6
0
 protected override void EstablishContext()
 {
     RoundTimeSixMinutes = An <IDojoTime>();
     RoundTimeSixMinutes.WhenToldTo(rt => rt.Time).Return(new TimeSpan(0, 6, 0));
 }
 public void StartRound(IDojoTime dojoTime)
 {
     currentTime = DateTime.Now;
     endTime = currentTime.Add(dojoTime.Time);
     OnTimeChanged();
 }