Exemplo n.º 1
0
        private void btnTestDoc_Click(object sender, EventArgs e)
        {
            int            question_id = test.questions_list[getSelectedQuestionIndex()].id;
            QuestionViewer obj         = new QuestionViewer(question_id);

            obj.Show();
        }
Exemplo n.º 2
0
    //public void SetQuestion(int exerciseNumber, int a, int b, int c ,int d) {
    //    question = new Question();
    //    question.exerciseNumber = exerciseNumber;
    //    question.SetSpecificValues(a,b,c,d);
    //    SetAnswerType();
    //    ShowQuestion();
    //}

    public void ShowQuestion()
    {
        questionViewer.Show(question);
        questionViewerRevive.Show(question);
        if (OnQuestionSet != null)
        {
            OnQuestionSet();
        }
    }