예제 #1
0
        public void RemoveAt(int index)
        {
            if (index < ParameterQuestions.Count)
            {
                ParameterQuestions.RemoveAt(index);
                return;
            }
            index = index - ParameterQuestions.Count;

            if (index < AnswerChoiceQuestions.Count)
            {
                AnswerChoiceQuestions.RemoveAt(index);
                return;
            }

            index = index - AnswerChoiceQuestions.Count;

            if (index < SimpleQuestions.Count)
            {
                SimpleQuestions.RemoveAt(index);
                return;
            }
        }
예제 #2
0
 public void AddParameterQuestion(ParameterQuestion question)
 {
     ParameterQuestions.Add(question);
 }