public void GenerateGui(ITimetable timetable) { var slots = timetable.ToList(); ClearGui(); slots.Sort(); NoOfSelectedSubjectLabel.Content = GetSubjectCount(slots); GenerateTimetableView(slots); DescriptionViewer.Update(slots); }
private static List <Event> ConvertTimetableToEvents(ITimetable timetable) { List <Slot> slotList = timetable.ToList(); var events = new List <Event>(); foreach (var slot in slotList) { events.Add(ConvertSlotToEvent(slot)); } return(events); }
public void GenerateGUI(ITimetable timetable) { TimeTableGui.GenerateGui(timetable); TimetableDescriptionViewer.GenerateAsImage(timetable.ToList()); }