private void button1_Click_1(object sender, EventArgs e) { if (quizz == false) { Accueil accueil = new Accueil(); accueil.Show(); this.Hide(); } else { if (question1 == 2 && compteurQuestion2 == treeViewSolution.Nodes.Count) { Quizz quizz = new Quizz(3); quizz.Show(); this.Hide(); } else if (question1 != 2 && compteurQuestion2 != 0 && compteurQuestion2 == treeViewSolution.GetNodeCount(true)) { Quizz quizz = new Quizz(1); quizz.Show(); this.Hide(); } else if (question1 == 2 && compteurQuestion2 != treeViewSolution.Nodes.Count) { Quizz quizz = new Quizz(2); quizz.Show(); this.Hide(); } else { Quizz quizz = new Quizz(0); quizz.Show(); this.Hide(); } } }
private void quizButton_Click(object sender, EventArgs e) { Quizz QCM = new Quizz(); this.Hide(); }