public HourPlan Clone() { var res = new HourPlan(); res.ClassToTeacher = new Dictionary <TheClass, TheAppointment>(ClassToTeacher); res.TeacherToClass = new Dictionary <TheAppointment, TheClass>(TeacherToClass); return(res); }
public Plan() { for (int i = 0; i < HoursPerDay; i++) { for (int j = 0; j < DaysPerWeek; j++) { HourPlans[j, i] = new HourPlan(); } } }