private void InitChoices() { List <int> ids = ruleObject.choicesIds; choices = new List <IChoice>(); foreach (int cId in ids) { var c = new ESChoice(cId); if (c == null) { continue; } choices.Add(c); } }
private void InitChoices() { List <int> ids = _questionObject.choicesIds; _choices = new List <IChoice>(); foreach (int cId in ids) { var c = new ESChoice(cId); if (c == null) { continue; } c.Question = this; _choices.Add(c); } }
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); }