Пример #1
0
 public Lecturer(string idt, string firstNamet, string middleNamet, string lastNamet)
 {
     Id = idt;
     FirstName = firstNamet;
     MiddleName = middleNamet;
     LastName = lastNamet;
     timetable = new Timetable();
 }
Пример #2
0
 public Student(string idt, string firstNamet, string middleNamet, string lastNamet)
 {
     Id = idt;
     FirstName = firstNamet;
     MiddleName = middleNamet;
     LastName = lastNamet;
     timetable = new Timetable();
     courseEnrolled = new List<string>();
 }
Пример #3
0
 public Lecturer()
 {
     timetable = new Timetable();
 }
Пример #4
0
 public void Printtimetable()
 {
     Course cou;
     ArrayList result;
     Timetable timetable;
     ClassPeriod clap;
     string tmp;
     foreach (object element in ca.objectList) {
         cou = element as Course;
         result = ReturnClassPreriodOfCourse (cou.Id);
         timetable = new Timetable ();
         foreach (object element1 in result) {
             clap = element1 as ClassPeriod;
             tmp = ca.GetNameFromID (clap.Courseid) + " - " + la.GetNameFromID (clap.Lecturerid);
             timetable.ReserveTime (tmp, clap.WeekDay, clap.StartTime, clap.EndTime);
         }
         Console.WriteLine ("Time table for: " + cou.Name);
         timetable.Printme ();
         timetable = null;
     }
 }
Пример #5
0
 public Room(string namet)
 {
     Name = namet;
     timetable = new Timetable();
 }