private void StartButton_Click(object sender, EventArgs e)
 {
     if (DiceGameRadioButton.Checked)
     {
         GameForm.Show();
         DiceGameRadioButton.Checked = false;
     }
     else if (CardGameRadioButton.Checked)
     {
         GameForm1.Show();
         CardGameRadioButton.Checked = false;
     }
 }
Ejemplo n.º 2
0
 private void StartButton_Click(object sender, EventArgs e)
 {
     if (diceRadio.Checked)
     {
         this.Hide();
         diceMenu GameForm = new diceMenu();
         GameForm.Closed += (s, args) => this.Close();
         GameForm.Show();
     }
     else if (cardRadio.Checked)
     {
         this.Hide();
         Which_Card_Game GameForm = new Which_Card_Game();
         GameForm.Closed += (s, args) => this.Close();
         GameForm.Show();
     }
     else
     {
         MessageBox.Show("An error has occured");
     }
 }