Beispiel #1
0
 private void CloseFormButton_Click(object sender, EventArgs e)
 {
     try
     {
         m_MusicPlayer.controls.stop();
         this.Close();
         MainMenuForm m_MainMenuForm = new MainMenuForm();
         m_MainMenuForm.Show();
         ItsDancePartyForm m_ItsDancePartyForm = (ItsDancePartyForm)Application.OpenForms["ItsDancePartyForm"];
         m_ItsDancePartyForm.Close();
         ItsDanceParty2Form m_ItsDanceParty2Form = (ItsDanceParty2Form)Application.OpenForms["ItsDanceParty2Form"];
         m_ItsDanceParty2Form.Close();
     }
     catch
     {
     }
 }
Beispiel #2
0
 private void HowToPlayButton_Click(object sender, EventArgs e)
 {
     try
     {
         m_Musicplayer.controls.stop();
         this.Close();
         HowToPlayForm m_HowToPlayForm = new HowToPlayForm();                  // Creats new form on taskbar every third click
         m_HowToPlayForm.Show();
         ItsDancePartyForm m_ItsPartyForm = new ItsDancePartyForm();
         m_ItsPartyForm.Show();
         ItsDanceParty2Form m_ItsParty2Form = new ItsDanceParty2Form();
         m_ItsParty2Form.Show();
         //if (m_IsClicked == false)
         //{
         //	HelloButton.Enabled = false;
         //	Credits.Enabled = false;
         //	NormalMode_Button.Enabled = false;
         //	GuessMode.Enabled = false;
         //	MemoryGame.Enabled = false;
         //	ReadBeforePlay_Button.Enabled = false;
         //	m_HowToPlayForm.Show();
         //	m_IsClicked = true;
         //}
         //else
         //{
         //	m_HowToPlayForm.Close();
         //	m_IsClicked = false;
         //	NormalMode_Button.Enabled = true;
         //	GuessMode.Enabled = true;
         //	HelloButton.Enabled = true;
         //	MemoryGame.Enabled = true;
         //	Credits.Enabled = true;
         //	ReadBeforePlay_Button.Enabled = true;
         //}
     }
     catch
     {
     }
 }