public void AddRound(int playersNumber) { OneRound or = OneRound.CreateRound(playersNumber, allRounds.Count + 1); or.PlayerValueChanged += new EventHandler <ChangePlayerValueEventArgs>(or_PlayerValueChanged); allRounds.Add(or); this.Controls.Add(or); RecalcPositions(); RecalcHeight(); }
public static OneRound CreateRound(int playersCount, int num) { OneRound round = null; if (playersCount > 0) { round = new OneRound(playersCount, num); } return(round); }