private void button3_Click_2(object sender, EventArgs e) { Sounds.menuSound.Play(); Sounds.disableMenuSounds(); Form1.stopGame(); activeGame.Dispose(); button1_Click(sender, e); Sounds.enableMenuSounds(); }
public void button1_Click_1(object sender, EventArgs e) { Sounds.menuSound.Play(); foreach (Control obj in this.Controls) { if (obj.GetType() == typeof(Form3)) { obj.Dispose(); } else if (obj.GetType() == typeof(Form1)) { Form1.stopGame(); obj.Dispose(); SetMusic("Focus"); } } menu.Show(); hidePauseMenu(); panel1.Show(); newgame.Focus(); }