Ejemplo n.º 1
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");
     }
 }