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(); } }
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(); } }
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(); } }