コード例 #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();
        }