/// <summary>
 /// Parse an AnswerDataCollection, 
 /// converts the data to webcontrols and assign them to a new section
 /// </summary>
 protected override AnswerSection GetAnswerSection(AnswerData answers, int sectionNumber, int sectionUid)
 {
     if (answers == null)
     {
         throw new ArgumentException("No instance set for the data of the question control");
     }
     CheckBoxAnswerSection section = new CheckBoxAnswerSection();
     section.SectionUid = sectionUid;
     section.SectionNumber = sectionNumber;
     section.LanguageCode = base.LanguageCode;
     section.Answers = AnswerItemFactory.CreateAnswerItemCollection(answers, this, section, AnswerSelectionMode.CheckBox, base.AnswerStyle, base.RenderMode, base.LanguageCode, this.UniqueID + GlobalConfig.AnswerSectionName + sectionUid, true, base.VoterAnswersState, base.EnableAnswersDefault);
     return section;
 }
        /// <summary>
        /// Parse an AnswerDataCollection,
        /// converts the data to webcontrols and assign them to a new section
        /// </summary>
        protected override AnswerSection GetAnswerSection(AnswerData answers, int sectionNumber, int sectionUid)
        {
            if (answers == null)
            {
                throw new ArgumentException("No instance set for the data of the question control");
            }
            CheckBoxAnswerSection section = new CheckBoxAnswerSection();

            section.SectionUid    = sectionUid;
            section.SectionNumber = sectionNumber;
            section.LanguageCode  = base.LanguageCode;
            section.Answers       = AnswerItemFactory.CreateAnswerItemCollection(answers, this, section, AnswerSelectionMode.CheckBox, base.AnswerStyle, base.RenderMode, base.LanguageCode, this.UniqueID + GlobalConfig.AnswerSectionName + sectionUid, true, base.VoterAnswersState, base.EnableAnswersDefault);
            return(section);
        }