Exemplo n.º 1
0
Arquivo: Form2.cs Projeto: 0shade0/RP3
 private void button3_Click_2(object sender, EventArgs e)
 {
     Sounds.menuSound.Play();
     Sounds.disableMenuSounds();
     Form1.stopGame();
     activeGame.Dispose();
     button1_Click(sender, e);
     Sounds.enableMenuSounds();
 }
Exemplo n.º 2
0
Arquivo: Form2.cs Projeto: 0shade0/RP3
        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();
        }