예제 #1
0
 public void UnregisterQuestionGroup(QuestionGroupBuilder toUnregister)
 {
     QuestionBuilder[] questionGroups = toUnregister.GetQuestionBuilders();
     for (int i = 0; i < questionGroups.Length; i++)
     {
         sortedQuestionBuilders.Remove(questionGroups[i]);
     }
     RefreshNumeration();
 }
예제 #2
0
 public void RegisterQuestionGroup(QuestionGroupBuilder toRegister)
 {
     if (!GetQuestionGroupBuilders().Contains(toRegister))
     {
         throw new ArgumentException();
     }
     if (toRegister == null)
     {
         throw new ArgumentNullException(nameof(toRegister));
     }
     QuestionBuilder[] questionBuilders = toRegister.GetQuestionBuilders();
     for (int i = 0; i < questionBuilders.Length; i++)
     {
         if (!sortedQuestionBuilders.Contains(questionBuilders[i]))
         {
             sortedQuestionBuilders.Add(questionBuilders[i]);
         }
     }
     RefreshNumeration();
 }