예제 #1
0
            public void PreLoad()
            {
                var sch = new BlankSchool();

                Core.App.Service  = sch;
                Core.App.Schedule = new Schedule();
                if (sch.FeedUrl != "")
                {
                    Core.App.Feed = new FeedEntrance(sch.FeedUrl);
                }
            }
예제 #2
0
        public void PreLoad()
        {
            Instance       = this;
            lazyWeatherLoc = new Lazy <Dictionary <string, string> >(CreateWeatherDetail);
            var sch = new BlankSchool();

            Service    = new Lazy <ISchoolSystem>(() => sch);
            Schedule   = new Lazy <IScheduleEntrance>(() => new Schedule());
            GradePoint = new Lazy <IGradeEntrance>(() => null);
            Message    = new Lazy <IMessageEntrance>(() => null);

            Feed = new Lazy <IFeedEntrance>(() =>
            {
                if (sch.FeedUrl != "")
                {
                    return(new FeedEntrance(sch.FeedUrl));
                }
                else
                {
                    return(null);
                }
            });
        }