Beispiel #1
0
        public static void InitializePersonalProjects(this ITashaPerson person)
        {
            //Work | School | IndividualOther | IndividualMarket
            SchedulerPersonData data;

            person.Attach("SData", data = new SchedulerPersonData());
            ProjectSchedule workSchedule   = new ProjectSchedule();
            ProjectSchedule schoolSchedule = new ProjectSchedule();
            ProjectSchedule otherSchedule  = new ProjectSchedule();
            ProjectSchedule marketSchedule = new ProjectSchedule();

            // We could just call the other methods, but this will run much faster
            data.WorkSchedule   = new PersonalProject(workSchedule, person);
            data.SchoolSchedule = new PersonalProject(schoolSchedule, person);
            data.OtherSchedule  = new PersonalProject(otherSchedule, person);
            data.MarketSchedule = new PersonalProject(marketSchedule, person);
            data.Schedule       = new PersonSchedule(person);
        }