コード例 #1
0
 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();
 }
コード例 #2
0
 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)
     {
     }
 }
コード例 #3
0
        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;
                }
            }
        }
コード例 #4
0
 private void Btn_Back_Click(object sender, EventArgs e)
 {
     MostUsed.OpenFormInPanel(FatherForm, FatherForm.fatherForm.pnl_FormContainer);
 }
コード例 #5
0
        private void ButtonRanking_Click(object sender, EventArgs e)
        {
            fatherForm.RANKING_FORM.StartReading();

            MostUsed.OpenFormInPanel(fatherForm.RANKING_FORM, fatherForm.pnl_FormContainer);
        }
コード例 #6
0
 private void Btn_books_Click(object sender, EventArgs e)
 {
     MostUsed.OpenFormInPanel(fatherForm.VIDEOS_VIEW, this.formsHolder);
 }
コード例 #7
0
 private void Btn_Documents_Click(object sender, EventArgs e)
 {
     MostUsed.OpenFormInPanel(documentListForm, this.fatherForm.pnl_FormContainer);
 }
コード例 #8
0
 private void IconButton1_Click(object sender, EventArgs e)
 {
     MostUsed.OpenFormInPanel(questionsListForm, this.fatherForm.pnl_FormContainer);
 }
コード例 #9
0
 private void Btn_usersList_Click(object sender, EventArgs e)
 {
     MostUsed.OpenFormInPanel(userListForm, this.fatherForm.pnl_FormContainer);
 }