예제 #1
0
        public frmMainGame()
        {
            InitializeComponent();
            frmAllGames allGames = new frmAllGames();

            allGames.Show();

            // Generate the two new teams with generic names
            teamOne = new Team("Team One");
            teamTwo = new Team("Team Two");

            // Fill in the two arrays with labels for the scoreboard
            teamOneRounds[0] = lblT1R1;
            teamOneRounds[1] = lblT1R2;
            teamOneRounds[2] = lblT1R3;
            teamOneRounds[3] = lblT1R4;

            teamTwoRounds[0] = lblT2R1;
            teamTwoRounds[1] = lblT2R2;
            teamTwoRounds[2] = lblT2R3;
            teamTwoRounds[3] = lblT2R4;
        }
예제 #2
0
        private void btnViewPastGames_Click(object sender, EventArgs e)
        {
            frmAllGames frmAllGames = new frmAllGames();

            frmAllGames.Show();
        }