Exemplo n.º 1
0
 public Game(string pool, string team1, string team2, GamePeriodList periods, int team1Score, int team2Score)
 {
     _pool          = pool;
     _team1         = team1;
     _team1Original = team1;
     _team2         = team2;
     _team2Original = team2;
     _periods.Clone(periods);
     _team1Score = team1Score;
     _team2Score = team2Score;
 }
Exemplo n.º 2
0
 public void Clone(GamePeriodList periods)
 {
     Clear();
     if (periods != null)
     {
         foreach (GamePeriod period in periods)
         {
             GamePeriod newPeriod = new GamePeriod();
             newPeriod.Clone(period);
             Add(newPeriod);
         }
     }
 }
Exemplo n.º 3
0
 public void SetParent(GamePeriodList parent)
 {
     _parent = parent;
 }
Exemplo n.º 4
0
 public Game(string pool, string team1, string team2, GamePeriodList periodList)
     : this(pool, team1, team2, periodList, 0, 0)
 {
     // Overload constructor.
 }