private void btn_continue_Click(object sender, EventArgs e) { if (activeAnswer == 0) { label_anounce.Text = "Спочатку потрібно вибрати варіант відповіді"; } else { label_anounce.Text = "Твоя відповідь прийнята =)"; StatisticalAnalyzer.CheckAnswer(tableName, questionId, activeAnswer); //correct-or-nonCorrect answer activeAnswer = 0; // Update status of question DBManager.BlockQuestionSession(questionId, tableName); // Update list of tables FormPicker.DempingManager(FormPicker.pickIndex); // Call new question if (FormPicker.formContainer.Count != 0) { this.Hide(); FormPicker.formContainer.ElementAt(FormPicker.numberGeneration()).Show(); } else { EndForm endForm = new EndForm(); endForm.Show(); this.Hide(); } } }
private void InsideForm_Load(object sender, EventArgs e) { if (FormPicker.formContainer.Count != 0) { //FormPicker.additionForm.Show(); FormPicker.formContainer.ElementAt(FormPicker.numberGeneration()).Show(); } else { EndForm endForm = new EndForm(); endForm.Show(); } }
private void btn_start_Click(object sender, EventArgs e) { //FormPicker.additionForm.Show(); FormPicker.formContainer.ElementAt(FormPicker.numberGeneration()).Show(); this.Hide(); } // start quiz method. Open First question of quiz