Exemplo n.º 1
0
 private static void CreateCourseTemplateReference(CourseCollection courses, ExamTemplateCollection templates)
 {
     foreach (Course each in courses.Values)
     {
         if (templates.ContainsKey(each.ExamTemplateId))
         {
             each.SetExamTemplate(templates[each.ExamTemplateId]);
         }
         else
         {
             Console.WriteLine("Course Error:" + each.Identity);
         }
     }
 }
Exemplo n.º 2
0
 private static void CreateTemplateExamReference(ExamTemplateCollection templates, TEIncludeCollection teincludes)
 {
     foreach (TEInclude each in teincludes.Values)
     {
         if (templates.ContainsKey(each.ExamTemplateId))
         {
             ExamTemplate template = templates[each.ExamTemplateId];
             template.TEIncludes.Add(each.Identity, each);
         }
         else
         {
             Console.WriteLine("TEInclude Error:" + each.Identity);
         }
     }
 }