Esempio n. 1
0
 public void RebuildTreeView(string criteria)
 {
     tree.Nodes.Clear();
     if (courses.Count > 0)
     {
         foreach (var c in courses.Where(co => (co.CourseTitle.ToLower().Contains(criteria.ToLower())) || (co.ID.Contains(criteria))))
         {
             CourseNode cn = BuildCourseNodeFor(c);
             tree.Nodes.Add(cn);
         }
         tree.Sort();
     }
 }
Esempio n. 2
0
        public CourseNode BuildCourseNodeFor(Course course)
        {
            CourseNode node = new CourseNode(course);

            if (course.Assessments.Count > 0)
            {
                foreach (var s in course.Assessments)
                {
                    node.Nodes.Add(new AssessmentSessionNode(s));
                }
            }
            return(node);
        }
Esempio n. 3
0
 public void RebuildTreeView()
 {
     tree.Nodes.Clear();
     if (courses.Count > 0)
     {
         foreach (var c in courses)
         {
             CourseNode cn = BuildCourseNodeFor(c);
             tree.Nodes.Add(cn);
         }
         tree.Sort();
     }
 }