public void ButtonInterrupt_Click(object sender, EventArgs e) { MostUsed.OpenFormInPanel(FatherForm, FatherForm.FatherForm.pnl_FormContainer); FatherForm.Questionaire = null; FatherForm.NextQuestionArea = null; this.Dispose(); this.Close(); }
private void Btn_Start_Click(object sender, EventArgs e) { try { int value = Convert.ToInt32(TextMaxNumber.Text); int CuestionMaxNumber = Convert.ToInt32(TextMaxNumber.Text); Questionaire = new DatabaseClass.Questionaire(FatherForm.CURRENT_USER, CuestionMaxNumber); NextQuestionArea = new QuestionsMain(this); MostUsed.OpenFormInPanel(NextQuestionArea, FatherForm.pnl_FormContainer); } catch (Exception) { } }
private void Verify() { var QuestionNumber = CurrentQuestionaire.Preguntas.Count; if (buttonVerify.Text == "Verificar") { int CorrectNumber = CurrentQuestionaire.Preguntas[index].CorrectQuestionNumber; int SelectedBoxIndex = GetSelectedCheck(); GetCorrectCheck().TextColor = Color.FromArgb(185, 238, 119); GetCorrectCheck(SelectedBoxIndex).TextColor = Color.FromArgb(234, 139, 132); if (SelectedBoxIndex == CorrectNumber) { GetCorrectCheck(SelectedBoxIndex).TextColor = Color.FromArgb(152, 195, 109); correct++; } if (index + 1 == QuestionNumber) { NextQuestion(); } //buttonVerify.Text = "Siguiente"; if ((index + 2) <= QuestionNumber) { buttonVerify.Text = "Siguiente"; } else { buttonVerify.Text = "Finalizar"; } } else if (buttonVerify.Text == "Siguiente") { if ((index + 1) <= QuestionNumber) { buttonVerify.Text = "Verificar"; NextQuestion(); } if (index + 1 == QuestionNumber) { buttonVerify.Text = "Verificar"; PrepareAll(); } } else { try { CurrentQuestionaire.Insert(); FinishForm = new QuestionFinish(this); MostUsed.OpenFormInPanel(FinishForm, FatherForm.FatherForm.pnl_FormContainer); } catch (Exception) { throw; } } }
private void Btn_Back_Click(object sender, EventArgs e) { MostUsed.OpenFormInPanel(FatherForm, FatherForm.fatherForm.pnl_FormContainer); }
private void ButtonRanking_Click(object sender, EventArgs e) { fatherForm.RANKING_FORM.StartReading(); MostUsed.OpenFormInPanel(fatherForm.RANKING_FORM, fatherForm.pnl_FormContainer); }
private void Btn_books_Click(object sender, EventArgs e) { MostUsed.OpenFormInPanel(fatherForm.VIDEOS_VIEW, this.formsHolder); }
private void Btn_Documents_Click(object sender, EventArgs e) { MostUsed.OpenFormInPanel(documentListForm, this.fatherForm.pnl_FormContainer); }
private void IconButton1_Click(object sender, EventArgs e) { MostUsed.OpenFormInPanel(questionsListForm, this.fatherForm.pnl_FormContainer); }
private void Btn_usersList_Click(object sender, EventArgs e) { MostUsed.OpenFormInPanel(userListForm, this.fatherForm.pnl_FormContainer); }