private void resetMapToolStripMenuItem_Click(object sender, EventArgs e) { EditorForm editor = new EditorForm(mapX, mapY); editor.Show(); this.Hide(); }
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(); } }