Beispiel #1
0
 internal async static Task Update()
 {
     if (SavedData != null)
     {
         await DataSaver <SavedData> .Save("SavedData", SavedData);
     }
 }
Beispiel #2
0
        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;
        }