static void Main() { GUI_Menu _menu = new GUI_Menu(); Application.EnableVisualStyles(); Application.Run(_menu); }
private void play_button_Click(object sender, EventArgs e) { _menuController.setPlayerName(this.player_name_txtbox.Text); _menuController.setNumberQuestions(Decimal.ToInt32(this.number_questions_box.Value)); GUI_Menu tempGui = this; _menuController.makeQuestions(); _menuController.goNextScreen(ref tempGui); }
public void goNextScreen(ref GUI_Menu pGuiMenu) { _guiMenu = pGuiMenu; _guiGame = new GUI_Game(); MainController tempController = this; _guiGame.setController(ref tempController); setBasicInfo(); setQuestion(); _guiGame.Show(); _guiGame.FormClosed += new FormClosedEventHandler(Form2_FormClosed); pGuiMenu.Hide(); }