Ejemplo n.º 1
0
        private void SinglePigRadio_CheckedChanged(object sender, EventArgs e)
        {
            this.Hide();
            Pig_Game_Form GameForm = new Pig_Game_Form();

            GameForm.Closed += (s, args) => this.Close();
            GameForm.Show();
        }
Ejemplo n.º 2
0
 private void SingleDiePigRadioButton_CheckedChanged(object sender, EventArgs e)
 {
     if (SingleDiePigRadioButton.Checked)
     {
         Pig_Game_Form GameForm = new Pig_Game_Form();
         GameForm.Show();
         SingleDiePigRadioButton.Checked = false;
     }
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Determine which Dice Game the user wants to play.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void radioButton_Click(object sender, EventArgs e)
 {
     if (singleDiePigRadioButton.Checked)
     {
         Pig_Game_Form pigGameForm = new Pig_Game_Form();
         pigGameForm.Show();
     }
     else if (twoDicePigRadioButton.Checked)
     {
         Pig_with_Two_Dice_Form pigWithTwoDiceForm = new Pig_with_Two_Dice_Form();
         pigWithTwoDiceForm.Show();
     }
 }