예제 #1
0
 private void btnPlay_Click(object sender, EventArgs e)
 {
     if (radioBtnEasy.Checked)
     {
         this.Hide();
         EasyLevel easyLevel = new EasyLevel();
         easyLevel.ShowDialog();
         this.Close();
     }
     else
     if (radioBtnMedium.Checked)
     {
         this.Hide();
         MediumLevel mediumLevel = new MediumLevel();
         mediumLevel.ShowDialog();
         this.Close();
     }
     else
     if (radioBtnHard.Checked)
     {
         this.Hide();
         HardLevel hardLevel = new HardLevel();
         hardLevel.ShowDialog();
         this.Close();
     }
 }
예제 #2
0
 private void btnTryAgain_Click(object sender, EventArgs e)
 {
     this.Hide();
     if (form == "easy")
     {
         EasyLevel easyLevel = new EasyLevel();
         easyLevel.ShowDialog();
     }
     else
     if (form == "medium")
     {
         MediumLevel mediumLevel = new MediumLevel();
         mediumLevel.ShowDialog();
     }
     else
     if (form == "hard")
     {
         HardLevel hardLevel = new HardLevel();
         hardLevel.ShowDialog();
     }
     this.Close();
 }