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