示例#1
0
        /// <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);
        }
示例#2
0
        public void AddQuestionOption(QuestionOptionViewModel questionOptionViewModel)
        {
            QuestionOptions.Add(questionOptionViewModel);

            RaisePropertyChanged("QuestionOptions");
        }