Esempio n. 1
0
        public HourPlan Clone()
        {
            var res = new HourPlan();

            res.ClassToTeacher = new Dictionary <TheClass, TheAppointment>(ClassToTeacher);
            res.TeacherToClass = new Dictionary <TheAppointment, TheClass>(TeacherToClass);

            return(res);
        }
Esempio n. 2
0
 public Plan()
 {
     for (int i = 0; i < HoursPerDay; i++)
     {
         for (int j = 0; j < DaysPerWeek; j++)
         {
             HourPlans[j, i] = new HourPlan();
         }
     }
 }