Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of <see cref="Lesson"/>. A new <see cref="ExcelAllGrade.model.Teacher"/> is added to <see cref="Teachers"/>.
 /// </summary>
 /// <param name="teacher">The <see cref="Teachers"/> of the <see cref="Lesson"/>.</param>
 /// <param name="subject">The <see cref="Subject"/> of the <see cref="Lesson"/>.</param>
 public Lesson(string teacher, Subject subject)
 {
     this.Subject = subject;
     this.Teachers = new List<Teacher>();
     this.Teachers.Add(new Teacher(teacher));
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of <see cref="Lesson"/>.
 /// </summary>
 /// <param name="teachers">The <see cref="Teachers"/> of the <see cref="Lesson"/>.</param>
 /// <param name="subject">The <see cref="Subject"/> of the <see cref="Lesson"/>.</param>
 public Lesson(List<Teacher> teachers, Subject subject)
 {
     this.Teachers = teachers;
     this.Subject = subject;
 }