/// <summary> /// 添加问题 /// </summary> /// <param name="description"></param> /// <returns></returns> public QuestionOption AddQuestionOption(string description) { var questionOption = QuestionOption.CreateNew(this, description); if (QuestionOptions == null) { QuestionOptions = new List <QuestionOption>(); } QuestionOptions.Add(questionOption); return(questionOption); }
public void AddQuestionOption(QuestionOptionViewModel questionOptionViewModel) { QuestionOptions.Add(questionOptionViewModel); RaisePropertyChanged("QuestionOptions"); }