Esempio n. 1
0
 /// <summary>
 /// Called when the rally is over.
 /// </summary>
 /// <param name="point">Point.</param>
 public void RallyFinished(Point <TTeam> point)
 {
     Points.Add(point);
     if (point.WinnerTeam == TeamA)
     {
         PointCounter.IncrementA();
     }
     else if (point.WinnerTeam == TeamB)
     {
         PointCounter.IncrementB();
     }
     //Allows child to raise INotifyPropertyChanged.PropertyChanged event.
     (PointA, PointB) = (PointCounter.PointA, PointCounter.PointB);
     if (PointCounter.IsGameSet)
     {
         WinnerTeam = point.WinnerTeam;
         OnGameOver();
         Set.CurrentGameFinished();
     }
 }