Ejemplo n.º 1
0
        public void Turnament2stStage()
        {
            counter = 2;
            WinerCheck Checking = new WinerCheck(); // nie moge wyniesc to do pozostalych klas --> pokazuje owerflow.exeption

            FightNum = Checking.FirstRoundWinerChecking(FightNum, GroupScoreTable);

            for (int i = 0; i < 4; i++)
            {
                Label GroupNo = new Label();

                GroupNo.Text = "Grupa " + FightNum[i];

                GroupNo.SetBounds(20, 20, 50, 20);
                GroupNo.Location = new Point(650, 21 * counter);

                Controls.Add(GroupNo);
                counter++;
                if (i == 0 || i == 2)
                {
                    Label versus = new Label();
                    versus.Text = "VS";
                    versus.SetBounds(20, 20, 30, 20);
                    versus.Location = new Point(650, 21 * counter);
                    Controls.Add(versus);
                    counter++;
                }
                if (i == 1)
                {
                    counter++;
                }
            }
            for (int i = 0; i < 4; i++)
            {
                GroupScoreTable[i] = 0;
            }
            counter = 2;
            ForI    = 0;

            CheckFor2ndRound.Text = "Zatwierdz";

            CheckFor2ndRound.SetBounds(20, 20, 80, 20);
            CheckFor2ndRound.Location = new Point(800, 21 * counter);
            GroupScore.SetBounds(20, 20, 30, 20);
            GroupScore.Location = new Point(720, 21 * counter);

            Controls.Add(CheckFor2ndRound);
            Controls.Add(GroupScore);
            CheckFor2ndRound.Click += CheckFor2ndRound_Click;
        }
Ejemplo n.º 2
0
        public void FinalResult()
        {
            WinerCheck Checking = new WinerCheck(); // nie moge wyniesc to do pozostalych klas --> pokazuje owerflow.exeption

            FightNum = Checking.WinerChecking(FightNum, GroupScoreTable);
            for (int i = 0; i < 4; i++)
            {
                Label FinalPlace = new Label();
                FinalPlace.Text = (i + 1) + " place: ";
                FinalPlace.SetBounds(20, 20, 50, 20);
                FinalPlace.Location = new Point(870, 21 * (i + 2));
                Controls.Add(FinalPlace);
                //ShowGroups(3, FightNum[i]-1, FightNum[i], i+2); // nie dopracowane
                Label GroupNo = new Label();
                GroupNo.Text = "Grupa " + FightNum[i];
                GroupNo.SetBounds(20, 20, 50, 20);
                GroupNo.Location = new Point(940, 21 * (i + 2));
                Controls.Add(GroupNo);
            }
        }