Exemplo n.º 1
0
        private void NewGameBtn_Click(object sender, EventArgs e)
        {
            this.Hide();
            NewGame newGame = new NewGame();

            newGame.ShowDialog();
            this.Show();
        }
Exemplo n.º 2
0
 private void NewGame_Click(object sender, EventArgs e)
 {
     if (LoggedIn == false)
     {
         MessageBox.Show("please log in!");
     }
     else
     {
         BottomMainScreenTable.Hide();
         pictureBox3.Hide();
         NewGame aGame = new NewGame(this, student)
         {
             Dock = DockStyle.Fill, TopLevel = false, TopMost = true
         };
         this.GamePanel.Controls.Add(aGame);
         aGame.Show();
     }
 }
 public CourseGrid(NewGame newGame) //used for when accessing the courses from the newGame screen
 {
     this.newGame = newGame;
     InitializeComponent();
 }