Ejemplo n.º 1
0
        private Question ConvertToQuestion(UnsavedQuestion unsaved)
        {
            Question q = new Question();

            q.question_text     = unsaved.QuestionText;
            q.correct_answer    = unsaved.CorrectAnswer;
            q.incorrect_answer1 = unsaved.FirstWrongAnswer;
            q.incorrect_answer2 = unsaved.SecondWrongAnswer;
            q.discipline        = unsaved.SelectedDiscipline;
            q.is_free_text      = false;
            return(q);
        }
Ejemplo n.º 2
0
        public ObservableCollection <UnsavedQuestion> AddQuestion()
        {
            UnsavedQuestion q = new UnsavedQuestion();

            q.QuestionText       = QuestionText;
            q.CorrectAnswer      = CorrectAnswer;
            q.FirstWrongAnswer   = FirstWrongAnswer;
            q.SecondWrongAnswer  = SecondWrongAnswer;
            q.SelectedDiscipline = SelectedDiscipline;

            Questions.Add(q);
            return(Questions);
        }