Exemplo n.º 1
0
        private void resetMapToolStripMenuItem_Click(object sender, EventArgs e)
        {
            EditorForm editor = new EditorForm(mapX, mapY);

            editor.Show();
            this.Hide();
        }
Exemplo n.º 2
0
 public void button1_Click(object sender, EventArgs e)
 {
     if (buttonSender.Name == "NewGameButton")
     {
         if (customText.Text == "")
         {
             GameForm game = new GameForm(yScrollBar.Value, xScrollBar.Value, bombsScrollBar.Value); //x and y are backwards because 2D arrays are dumb
             game.Show();
         }
         else
         {
             GameForm game = new GameForm(customText.Text);
             game.Show();
         }
         this.Hide();
     }
     else if (buttonSender.Name == "CustomMapEditorButton")
     {
         EditorForm editor = new EditorForm(yScrollBar.Value, xScrollBar.Value); //x and y are backwards because 2D arrays are dumb
         editor.Show();
         this.Hide();
     }
 }