private void button3_Click(object sender, EventArgs e) { if (Main_Game.exitGame() == false) { Form1 MainMenu = new Form1(); MainMenu.Show(); this.Close(); Main.Close(); } }
private void startNewGame(string gameType) { if (gameType == "Custom") { Main_Game NewGameForm = new Main_Game(textBox1.Text, dateTimePicker1.Value.Date); NewGameForm.Show(); } else { Main_Game NewGameForm = new Main_Game(textBox3.Text); NewGameForm.Show(); } this.Close(); }
public bankReg(Game CurrentGame, Main_Game GameForm) { InitializeComponent(); currentGame = CurrentGame; gameForm = GameForm; }
public Game_Menu(Game CurrentGame, int previousTimerSpeed, Main_Game main) { InitializeComponent(); GameATM = CurrentGame; Main = main; }