Beispiel #1
0
        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();
        }
Beispiel #2
0
        public static OneRound CreateRound(int playersCount, int num)
        {
            OneRound round = null;

            if (playersCount > 0)
            {
                round = new OneRound(playersCount, num);
            }
            return(round);
        }