Exemplo n.º 1
0
 private void button2_Click(object sender, EventArgs e)
 {
     t.Stop();
     if (chooseRight == 1)
     {
         if (radioButton1.Checked == true)
         {
             MessageBox.Show("Correct! This questions' points have been added to your score.");
             Game.score += pointValue;
         }
         else
         {
             label1.Visible = false;
             label2.Visible = false;
             label3.Visible = false;
             MessageBox.Show("Incorrect! No points have been added to your score.");
             System.Threading.Thread.Sleep(2000);
         }
     }
     if (chooseRight == 2)
     {
         if (radioButton2.Checked == true)
         {
             MessageBox.Show("Correct! This questions' points have been added to your score.");
             Game.score += pointValue;
         }
         else
         {
             lblDisplay.Visible = false;
             label2.Visible     = false;
             label3.Visible     = false;
             MessageBox.Show("Incorrect! No points have been added to your score.");
             System.Threading.Thread.Sleep(2000);
         }
     }
     if (chooseRight == 3)
     {
         if (radioButton3.Checked == true)
         {
             MessageBox.Show("Correct! This questions' points have been added to your score.");
             Game.score += pointValue;
         }
         else
         {
             label1.Visible     = false;
             lblDisplay.Visible = false;
             label3.Visible     = false;
             MessageBox.Show("Incorrect! No points have been added to your score.");
             System.Threading.Thread.Sleep(2000);
         }
     }
     if (chooseRight == 4)
     {
         if (radioButton4.Checked == true)
         {
             MessageBox.Show("Correct! This questions' points have been added to your score.");
             Game.score += pointValue;
         }
         else
         {
             label1.Visible     = false;
             label2.Visible     = false;
             lblDisplay.Visible = false;
             MessageBox.Show("Incorrect! No points have been added to your score.");
             System.Threading.Thread.Sleep(2000);
         }
     }
     if (questionNumber == 3)
     {
         if (Game.roundCounter > 1)
         {
             MessageBox.Show("Advancing to the final round");
             Final final = new Final();
             final.Show();
         }
         else
         {
             Start round2 = new Start();
             round2.Show();
         }
     }
     if (questionNumber == 4)
     {
         Result result = new Result();
         result.Show();
     }
     this.Close();
 }