private void ProcessChoice(int choiceIndex)
    {
        ToHideWindow.RaiseEvent(window);
        int qId = _currentChoicesIds.ElementAtOrDefault(choiceIndex);
        QuestionChoiceEntity choice = QuestionChoiceEntity.GetById(qId);

        if (choice == null)
        {
            return;
        }
        var c = new ESChoice(qId);

        ESWorkingMemory.QuestionsChoices.ResetChoices(c.Question);
        ESWorkingMemory.QuestionsChoices.MakeChoice(c);
        ESWorkingMemory.Questions.Add(c.Question, c);
    }
Example #2
0
 public ESChoice(int id)
 {
     _choiceObject = QuestionChoiceEntity.GetById(id); //throw error if null
     value         = new ParameterValue(_choiceObject.parameterValue);
 }