Ejemplo n.º 1
0
        public static void Fill()
        {
            DataSaver <Student> StudentData = new DataSaver <Student>();

            Student = StudentData.LoadMyData("Student");

            DataSaver <List <LessonPlanItem> > LessonPlanData = new DataSaver <List <LessonPlanItem> >();

            LessonPlan = LessonPlanData.LoadMyData("LessonPlan") == null ? new List <LessonPlanItem>() : LessonPlanData.LoadMyData("LessonPlan");

            DataSaver <List <FoodList> > FoodListsData = new DataSaver <List <FoodList> >();

            FoodLists = FoodListsData.LoadMyData("FoodLists");

            DataSaver <Settings> SettingsData = new DataSaver <Settings>();

            Settings = SettingsData.LoadMyData("Settings") == null ? new Settings() : SettingsData.LoadMyData("Settings");
        }
Ejemplo n.º 2
0
        public static void UpdateSettings()
        {
            DataSaver <Settings> SettingsData = new DataSaver <Settings>();

            SettingsData.SaveMyData(Settings, "Settings");
        }
Ejemplo n.º 3
0
        public static void UpdateFoodLists()
        {
            DataSaver <List <FoodList> > FoodListsData = new DataSaver <List <FoodList> >();

            FoodListsData.SaveMyData(FoodLists, "FoodLists");
        }
Ejemplo n.º 4
0
        public static void UpdateLessonPlan()
        {
            DataSaver <List <LessonPlanItem> > LessonPlanData = new DataSaver <List <LessonPlanItem> >();

            LessonPlanData.SaveMyData(LessonPlan, "LessonPlan");
        }
Ejemplo n.º 5
0
        public static void UpdateStudent()
        {
            DataSaver <Student> StudentData = new DataSaver <Student>();

            StudentData.SaveMyData(Student, "Student");
        }