Пример #1
0
        public Subject(XmlElement elmSubject)
        {
            this.questionGroups = new Dictionary<string,QuestionGroup>();
            this.qgs = new List<QuestionGroup>();

            foreach (XmlElement elm in elmSubject.SelectNodes("QG"))
            {
                QuestionGroup qg = new QuestionGroup(elm);
                this.questionGroups.Add(qg.GetIdentifyLabel(), qg);
                this.qgs.Add(qg);
            }
        }
Пример #2
0
        public Subject(XmlElement elmSubject)
        {
            this.questionGroups = new Dictionary <string, QuestionGroup>();
            this.qgs            = new List <QuestionGroup>();

            foreach (XmlElement elm in elmSubject.SelectNodes("QG"))
            {
                QuestionGroup qg = new QuestionGroup(elm);
                this.questionGroups.Add(qg.GetIdentifyLabel(), qg);
                this.qgs.Add(qg);
            }
        }