Example #1
0
 private void btnSuivant_Click(object sender, EventArgs e)
 {
     noteTot++;
     if (noteTot == 19)
     {
         btnSuivant.Text = "Fin du test";
     }
     if (bonneReponse())
     {
         note++;
     }
     if (noteTot == 20)
     {
         this.Close();
         Resultats res = new Resultats(note);
         note    = 0;
         noteTot = 0;
         idQ     = new List <int> {
             0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19
         };
         res.Show();
     }
     else
     {
         choixQuestion();
         unchecking();
     }
 }
Example #2
0
        private void btnFinir_Click(object sender, EventArgs e)
        {
            int note = 0;

            if (justeArbre)
            {
                note += 10;
            }
            if (justeEnsembles)
            {
                note += 10;
            }
            Resultats res = new Resultats(note);
        }