示例#1
0
 private void button3_Click(object sender, EventArgs e)
 {
     if (Main_Game.exitGame() == false)
     {
         Form1 MainMenu = new Form1();
         MainMenu.Show();
         this.Close();
         Main.Close();
     }
 }
示例#2
0
 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();
 }
示例#3
0
 public bankReg(Game CurrentGame, Main_Game GameForm)
 {
     InitializeComponent();
     currentGame = CurrentGame;
     gameForm    = GameForm;
 }
示例#4
0
 public Game_Menu(Game CurrentGame, int previousTimerSpeed, Main_Game main)
 {
     InitializeComponent();
     GameATM = CurrentGame;
     Main    = main;
 }