Example #1
0
 private void Bcontinu_Click(object sender, EventArgs e)
 {
     TextComment.Hide();
     AlerteFaux.Hide();
     Lcomment.Hide();
     TexteExplication.Hide();
     Suivant();
 }
Example #2
0
        private void Bvalidate_Click(object sender, EventArgs e)
        {
            XmlReader doc = XmlReader.Create("../../listeQuestions.xml");

            bool valide = false;

            while (doc.Read())
            {
                if (doc.GetAttribute("id") == "" + index)
                {
                    if (Verifier(doc, Rep1))
                    {
                        if (Verifier(doc, Rep2))
                        {
                            if (Verifier(doc, Rep3))
                            {
                                if (Verifier(doc, Rep4))
                                {
                                    valide = true;
                                    points = CalculPoint();
                                }
                            }
                        }
                    }
                }
            }
            if (valide)
            {
                Suivant();
            }

            else
            {
                AlerteFaux.Show();
                Bvalidate.Hide();
                TextComment.Show();
                Lcomment.Show();
                TexteExplication.Show();
                Bcontinu.Show();
            }
        }