internal async static Task Update() { if (SavedData != null) { await DataSaver <SavedData> .Save("SavedData", SavedData); } }
internal async static Task Init() { SavedData = await DataSaver <SavedData> .Load("SavedData"); if (SavedData == null) { SavedData = new SavedData(); SavedData.Init(); } else { TempData.Student = SavedData.Student; TempData.RememberMe = true; } SwipeMenu.Items = Database.SavedData.MenuItems; }