예제 #1
0
파일: Form2.cs 프로젝트: 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();
 }
예제 #2
0
파일: Form2.cs 프로젝트: 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();
        }