Beispiel #1
0
        /// <summary>
        /// resets model and navigates back to root question
        /// </summary>
        public void Reset()
        {
            Question root = QuestionLink.First();

            QuestionLink.Clear();
            QuestionLink.Add(root);
            updateByCurentQuestion();
        }
Beispiel #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="answer"></param>
        public void SelectAnswer(Answer answer)
        {
            Question subq = QuestionLink.Last().getQuestionByAnswer(answer.Id);

            if (!QuestionLink.Contains(subq))
            {
                QuestionLink.Add(subq);
                updateByCurentQuestion();
            }
        }