コード例 #1
0
 public Schedule(long id, long idTerm, TypeOfWeek typeOfWeek, DayOfWeek dayOfWeek, int numOfLesson, Subject subject, TypeOfLesson typeOfLesson, Classroom classroom, List <Group> groups)
 {
     this.id           = id;
     this.idTerm       = idTerm;
     this.typeOfWeek   = typeOfWeek;
     this.dayOfWeek    = dayOfWeek;
     this.numOfLesson  = numOfLesson;
     this.subject      = subject;
     this.typeOfLesson = typeOfLesson;
     this.classroom    = classroom;
     this.groups       = groups;
     this.fieldForSort = Schedule.calculateFieldForSort(this.dayOfWeek, this.numOfLesson);
 }
コード例 #2
0
 public Lesson(long id, DateTime date, int countOfHours, int numOfLesson,
               Classroom classroom, long idTerm, Subject subject, List <Group> groups, TypeOfLesson typeOfLesson, string theme)
 {
     this.id           = id;
     this.date         = date;
     this.countOfHours = countOfHours;
     this.numOfLesson  = numOfLesson;
     this.classroom    = classroom;
     this.idTerm       = idTerm;
     this.subject      = subject;
     this.groups       = groups;
     this.typeOfLesson = typeOfLesson;
     this.theme        = theme;
 }