Example #1
0
        public static string ansGenerated(sectionTypes type, List <examItem> sectionItems)
        {
            string temp = "";
            int    i    = 0;

            do
            {
                //Debug.Print("sender: " + sender.ToString());
                temp += sectionItems[i].answersGenerated; // adding of question
            } while (++i < sectionItems.Count);
            return(temp);
        }
Example #2
0
        public static string generated(sectionTypes type, List <examItem> sectionItems)
        {
            string temp = "";
            int    i    = 0;

            do
            {
                //Debug.Print("sender: " + sender.ToString());
                temp += sectionItems[i].generated; // adding of question
                //System.Diagnostics.Debug.Write("ExamItem.cs >" + sectionItems[i].Choices[0]);
            } while (++i < sectionItems.Count);
            return(temp);
        }
        //this method only accepts predefined section types
        internal void AddSection(sectionTypes sectionType)
        {
            Section newSection;

            switch (sectionType)
            {
            case sectionTypes.complexSection:
                newSection = new ComplexSection();
                this.sectionList.Add(newSection);
                break;

            case sectionTypes.commentBox:
                newSection = new CommentBox();
                this.sectionList.Add(newSection);
                break;
            }
        }