예제 #1
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();
     }
 }
예제 #2
0
 private void TeacherMenu_Click(object sender, EventArgs e)
 {
     if (LoggedIn == false)
     {
         MessageBox.Show("please log in!");
     }
     else
     {
         BottomMainScreenTable.Hide();
         pictureBox3.Hide();
         AddTrivia thisTrivia = new AddTrivia()
         {
             Dock = DockStyle.Fill, TopLevel = false, TopMost = true
         };
         this.GamePanel.Controls.Add(thisTrivia);
         thisTrivia.Show();
     }
 }
예제 #3
0
 private void About_Click(object sender, EventArgs e)
 {
     if (LoggedIn == false)
     {
         MessageBox.Show("please log in!");
     }
     else
     {
         BottomMainScreenTable.Hide();
         pictureBox3.Hide();
         About newAbout = new Views.About()
         {
             Dock = DockStyle.Fill, TopLevel = false, TopMost = false
         };
         this.GamePanel.Controls.Add(newAbout);
         newAbout.Show();
     }
 }