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; }
public void Clone(GamePeriodList periods) { Clear(); if (periods != null) { foreach (GamePeriod period in periods) { GamePeriod newPeriod = new GamePeriod(); newPeriod.Clone(period); Add(newPeriod); } } }
public void SetParent(GamePeriodList parent) { _parent = parent; }
public Game(string pool, string team1, string team2, GamePeriodList periodList) : this(pool, team1, team2, periodList, 0, 0) { // Overload constructor. }