/// <summary> /// Loads all data relating to the User including blackboard data, timetables, trains, reminders etc... /// </summary> public static void LoadUserData() { ClearDashItemsSafe(); AddDashItemSafe(new TextContentDashCard("Welcome to SwinApp", "Creators of SwinApp")); LoadUserTimetable(); if (USE_PROTOTYPE_DATA) { AddDashItemSafe(new TextContentDashCard("Remember, learning is fun", "Creators of SwinApp")); //AddDashItemSafe(_upNextCard); AddDashItemSafe(new WeatherCard()); } //if the file doesn't exist, set _reminders to be an empty List of Reminder _reminders = SwinIO <List <Reminder> > .Read("reminders.json") ?? new List <Reminder>(); _classes = SwinIO <List <TimetabledClass> > .Read("classes.json") ?? new List <TimetabledClass>(); PopulateSchedule(); }