Ejemplo n.º 1
0
 public CourseEvent(string date, string start, string end, string room, string building, string teacher, CourseMain cm, LectureType lt)
 {
     this.Start    = DateTime.Parse($"{date.Trim()} {start.Trim()}");
     this.End      = DateTime.Parse($"{date.Trim()} {end.Trim()}");
     this.Room     = room.Trim();
     this.Building = building.Trim();
     this.Course   = cm;
     this.Type     = lt;
     this.Teacher  = teacher;
     this.Hash     = Library.GetHashString($"{this.Start}{this.End}{this.Location}{this.Teacher}{this.Course.Hash}{this.Type.Hash}");
 }