Exemplo n.º 1
0
        public TeacherLookup()
        {
            _teachers = new Dictionary <string, string>();

            XmlElement xmlClasses = QueryTeacher.GetTeacherList().GetContent().BaseElement;

            foreach (XmlElement each in xmlClasses.SelectNodes("Teacher"))
            {
                string name = each.SelectSingleNode("TeacherName").InnerText;
                string nick = each.SelectSingleNode("Nickname").InnerText;
                string Id   = each.GetAttribute("ID");

                string fullName = string.Format("{0}:{1}", name, nick);
                _teachers.Add(fullName, Id);
            }
        }
Exemplo n.º 2
0
        protected override object OnBackgroundWorkerWorking()
        {
            DSResponse dsrsp = QueryTeacher.GetCourseList(RunningID);

            return(dsrsp);
        }