Identifies which Viewmodel to start the application with.
Наследование: MvxApplicationObject, IMvxStartNavigation
Пример #1
0
        public App()
        {
            var startApplicationObject = new StartApplicationObject();

            Cirrious.MvvmCross.Plugins.File.PluginLoader.Instance.EnsureLoaded();
            Cirrious.MvvmCross.Plugins.ResourceLoader.PluginLoader.Instance.EnsureLoaded();
            Cirrious.MvvmCross.Plugins.Json.PluginLoader.Instance.EnsureLoaded();

            this.RegisterServiceInstance<IMvxStartNavigation>(startApplicationObject);

            this.RegisterServiceInstance<ILoadTechdaysData>(new TechdaysLoader());
            this.RegisterServiceInstance<ILoadSessionData>(new SessionLoader());
            this.RegisterServiceInstance<ILoadTopics>(new TopicLoader());
            this.RegisterServiceInstance<ILoadSpeakers>(new SpeakerLoader());
            this.RegisterServiceInstance<IManageAnAgenda>(new DummyAgendaManager());
            this.RegisterServiceInstance<ILoadTweets>(new FileTweetLoader());
            this.RegisterServiceInstance<IListMapper<Session, SessionListItemViewModel>>(new SessionOverviewMapping());
            this.RegisterServiceInstance<IListMapper<Speaker, SpeakerListItemViewModel>>(new SpeakerListItemMapping());
            this.RegisterServiceInstance<IMapInPlace<Session, SessionDetailViewModel>>(new SessionDetailMapping());
            this.RegisterServiceInstance<IMapInPlace<Speaker, SpeakerOverviewViewModel>>(new SpeakerDetailMapping());
        }
Пример #2
0
        public App()
        {
            var startApplicationObject = new StartApplicationObject();

            Cirrious.MvvmCross.Plugins.File.PluginLoader.Instance.EnsureLoaded();
            Cirrious.MvvmCross.Plugins.ResourceLoader.PluginLoader.Instance.EnsureLoaded();
            Cirrious.MvvmCross.Plugins.Json.PluginLoader.Instance.EnsureLoaded();

            this.RegisterServiceInstance <IMvxStartNavigation>(startApplicationObject);

            this.RegisterServiceInstance <ILoadTechdaysData>(new TechdaysLoader());
            this.RegisterServiceInstance <ILoadSessionData>(new SessionLoader());
            this.RegisterServiceInstance <ILoadTopics>(new TopicLoader());
            this.RegisterServiceInstance <ILoadSpeakers>(new SpeakerLoader());
            this.RegisterServiceInstance <IManageAnAgenda>(new DummyAgendaManager());
            this.RegisterServiceInstance <ILoadTweets>(new FileTweetLoader());
            this.RegisterServiceInstance <IListMapper <Session, SessionListItemViewModel> >(new SessionOverviewMapping());
            this.RegisterServiceInstance <IListMapper <Speaker, SpeakerListItemViewModel> >(new SpeakerListItemMapping());
            this.RegisterServiceInstance <IMapInPlace <Session, SessionDetailViewModel> >(new SessionDetailMapping());
            this.RegisterServiceInstance <IMapInPlace <Speaker, SpeakerOverviewViewModel> >(new SpeakerDetailMapping());
        }