private void gridWorldToolStripMenuItem_Click(object sender, EventArgs e) { GridWorldForm gwf = new GridWorldForm(); gwf.Show(); this.Close(); }
private void button1_Click(object sender, EventArgs e) { this.Hide(); GridWorldForm gwf; NPuzzleForm npf; if (radioButton2.Checked) { gwf = new GridWorldForm(); gwf.ShowDialog(); this.Show(); } else { npf = new NPuzzleForm(); npf.ShowDialog(); this.Show(); } }