/// <summary>
        /// Default method created by the Caliburn.Micro Framework
        /// </summary>
        protected override void Configure()
        {
            this.container = new PhoneContainer(RootFrame);
            this.container.RegisterPhoneServices();

            this.container.Singleton <InitialViewModel>();
            this.container.Singleton <WelcomeViewModel>();
            this.container.Singleton <AddAccountViewModel>();
            this.container.Singleton <MainPageViewModel>();
            this.container.Singleton <ProfileViewModel>();
            this.container.Singleton <ReputationListViewModel>();

            this.container.Instance <IProgressService>(new ProgressService(RootFrame));
            this.container.Instance <IStorageService>(new StorageService());
            this.container.Instance <INavigationHelperService>(new NavigationHelperService());
            this.container.Instance <IRatingService>(new RatingService("VBForumsMetro"));
            this.container.Instance <IDiagnosticsService>(new DiagnosticsService("VBForumsMetro.txt", "VBForumsMetro", "*****@*****.**"));
            this.container.Instance <ISterlingService>(new VBForumsMetroSterlingService());
            this.container.Instance <IVBForumsWebService>(new VBForumsWebService());
            this.container.Singleton <VBForumsMetroViewModelWorker>();

            var phoneService = this.container.GetInstance(typeof(IPhoneService), null) as IPhoneService;

            if (phoneService != null)
            {
                phoneService.Resurrecting += new System.Action(PhoneServiceResurrecting);
                phoneService.Continuing   += new System.Action(PhoneServiceContinuing);
            }

            RootFrame.Navigated += new NavigatedEventHandler(this.RootFrameNavigated);

            AddCustomConventions();
        }
Пример #2
0
        protected override void Configure()
        {
            container = new PhoneContainer();
            container.RegisterPhoneServices(RootFrame);

            container.Singleton <Forms.App>();
        }
Пример #3
0
		public Bootstrapper()
		{
			container = new PhoneContainer(this);
			container.RegisterSingleton(typeof(MainPageViewModel), "MainPageViewModel", typeof(MainPageViewModel));
			container.RegisterSingleton(typeof(FavoritesViewModel), null, typeof(FavoritesViewModel));
			container.RegisterSingleton(typeof(MostViewedViewModel), null, typeof(MostViewedViewModel));
			container.RegisterSingleton(typeof(AboutViewModel), null, typeof(AboutViewModel));
			container.RegisterSingleton(typeof(UserPivotViewModel), "UserPivotViewModel", typeof(UserPivotViewModel));
			container.RegisterSingleton(typeof(UserDetailsViewModel), null, typeof(UserDetailsViewModel));
			container.RegisterSingleton(typeof(UserRepositoriesViewModel), null, typeof(UserRepositoriesViewModel));
			container.RegisterSingleton(typeof(UserWatchingViewModel), null, typeof(UserWatchingViewModel));
			container.RegisterSingleton(typeof(RepositoryPivotViewModel), "RepositoryPivotViewModel", typeof(RepositoryPivotViewModel));
			container.RegisterSingleton(typeof(RepositoryDetailsViewModel), null, typeof(RepositoryDetailsViewModel));
			container.RegisterSingleton(typeof(RepositoryLinksViewModel), null, typeof(RepositoryLinksViewModel));
			container.RegisterSingleton(typeof(RepositoryContributorsViewModel), null, typeof(RepositoryContributorsViewModel));
			container.RegisterSingleton(typeof(IProgressService), null, typeof(ProgressService));
			container.RegisterSingleton(typeof(ISimpleCache), null, typeof(SimpleCache));
			container.RegisterSingleton(typeof(IRequestProcessor), null, typeof(CachingRequestProcessor));

			container.RegisterPerRequest(typeof(IGitHubHost), null, typeof(GitHubHost));

			container.RegisterInstance(typeof(INavigationService), null, new FrameAdapter(RootFrame));
			container.RegisterInstance(typeof(IPhoneService), null, new PhoneApplicationServiceAdapter(PhoneService));

			container.Activator.InstallLauncher<WebBrowserTask>();
			container.Activator.InstallLauncher<EmailComposeTask>();
		}
Пример #4
0
        protected override void Configure()
        {
            base.Configure();

            this.container = new PhoneContainer();
            this.container.RegisterPhoneServices(this.RootFrame);
        }
Пример #5
0
        private static void RegisterViewModels(PhoneContainer container)
        {
            container.PerRequest <LoginPageViewModel>();
            container.PerRequest <ServerPickerPageViewModel>();
            container.PerRequest <ServersPageViewModel>();
            container.PerRequest <MainPageViewModel>();

            container.PerRequest <OverviewViewModel>();
            container.PerRequest <HostGroupsPageViewModel>();
            container.PerRequest <HostsPageViewModel>();
            container.PerRequest <HostTriggersPageViewModel>();
            container.PerRequest <EventsPageViewModel>();

            container.PerRequest <TimelineViewModel>();
            container.PerRequest <TimelinePageViewModel>();

            container.PerRequest <TriggersViewModel>();
            container.PerRequest <TriggersPageViewModel>();

            container.PerRequest <AboutPageViewModel>();
            container.Singleton <PushSettingsPageViewModel>();
            container.PerRequest <GraphsPageViewModel>();
            container.PerRequest <GraphPageViewModel>();
            container.PerRequest <DataPageViewModel>();
            container.PerRequest <PeriodPageViewModel>();
            container.PerRequest <CustomPeriodPageViewModel>();

            container.PerRequest <FavoritesViewModel>();
            container.PerRequest <FavoritesPageViewModel>();
            container.PerRequest <ViewModels.FavoritesHub.TriggersViewModel>();
            container.PerRequest <ViewModels.FavoritesHub.GraphsViewModel>();
        }
Пример #6
0
        protected override void Configure()
        {
            container = new PhoneContainer();

            // Language display initialization
            InitializeLanguage();
            if (!Execute.InDesignMode)
            {
                container.RegisterPhoneServices(RootFrame);
            }

            container.Singleton <MainPageViewModel>();
            container.Singleton <ServerViewModel>();
            container.PerRequest <ThreadListViewModel>();
            container.PerRequest <PostViewModel>();
            container.Singleton <IUserService, UserViewModel>();

            container.Singleton <IIndicator, Indicator>();
            container.Singleton <IErrorMsg, ErrorMsg>();
            //container.Singleton<IResourceService, ApplicationResourceService>();
            container.Singleton <IResourceService, NetResourceService>();
            container.Singleton <IDataService, DataService>();
            container.Singleton <IStorageHelper, IsolatedStorageHelper>();
            container.Singleton <IParserFactory, DZParserFactory>();
            container.Singleton <IOrientationHelper, OrientationHelper>();

            GalaSoft.MvvmLight.Threading.DispatcherHelper.Initialize();
            ImageTools.IO.Decoders.AddDecoder <ImageTools.IO.Gif.GifDecoder>();

#if WP8
            RootFrame.Navigating += RootFrame_Navigating;
            RootFrame.Navigated  += RootFrame_Navigated;
#endif
            AddCustomConventions();
        }
Пример #7
0
        protected override void Configure()
        {
            _phoneContainer = new PhoneContainer();
            _analytics      = new FlurryAnalytics();

            RegisterConventions();

            _phoneContainer.RegisterPhoneServices(RootFrame);

            RegisterServices();
            RegisterViews();

            RegisterStorageHandlers();
            RegisterNavigationCoercion();

            Execute.InitializeWithDispatcher();

            LoadLanguagesAsync();

            Telerik.Windows.Controls.LocalizationManager.GlobalStringLoader = new ResourceLoader();
            Log.Init(new DebugLogger());
            InitErrorHandler();

            RootFrame.Navigating += RootFrameNavigating;
            RootFrame.Navigated  += RootFrameNavigated;
        }
Пример #8
0
        protected override void Configure()
        {
            container = new PhoneContainer(RootFrame);

            container.RegisterPhoneServices();
            container.PerRequest <MainPageViewModel>();

            AddCustomConventions();
        }
Пример #9
0
        protected override void Configure()
        {
            _container = new PhoneContainer(RootFrame);

            _container.RegisterPhoneServices();

            RegisterServices();
            RegisterViewModels();
        }
        protected override void Configure()
        {
            container = new PhoneContainer(RootFrame);
            container.RegisterPhoneServices();

            container.PerRequest <MainPageViewModel>();

            Caliburn.Micro.WP71.Recipes.ExternalModules.ExternalModuleLoader.Initialize();
        }
Пример #11
0
        protected override void Configure()
        {
            _container = new PhoneContainer();
            _container.RegisterPhoneServices(RootFrame);

            _container.Instance(RootFrame);

            _container.Singleton <ICache, FileSystemCache>();

            // View Models
            _container.Singleton <SplashViewModel>();
            _container.Singleton <AboutViewModel>();
            _container.Singleton <ShellViewModel>();
            _container.Singleton <MyBoardsViewModel>();
            _container.Singleton <MyCardsViewModel>();
            _container.Singleton <MyNotificationsViewModel>();
            _container.Singleton <ProfileViewModel>();

            _container.PerRequest <BoardViewModel>();
            _container.PerRequest <BoardListViewModel>();
            _container.PerRequest <CardViewModel>();
            _container.PerRequest <CardDetailPivotViewModel>();
            _container.PerRequest <CardDetailOverviewViewModel>();
            _container.PerRequest <CardDetailChecklistViewModel>();
            _container.PerRequest <CardDetailAttachmentsViewModel>();
            _container.PerRequest <CardDetailMembersViewModel>();
            _container.PerRequest <ChecklistViewModel>();
            _container.PerRequest <ChecklistItemViewModel>();
            _container.PerRequest <AttachmentViewModel>();
            _container.AllTransientTypesOf <NotificationViewModel>();

            // Event handlers
            _container.AllSingletonTypesOf <AbstractHandler>();

            // Services
            _container.PerRequest <Services.IApplicationBar, DefaultApplicationBar>();
            _container.Singleton <INetworkService, NetworkService>();
            _container.Singleton <IProgressService, ProgressService>();
            _container.Singleton <ITrelloApiSettings, TrelloSettings>();

#if DISCONNECTED
            _container.Singleton <IRequestClient, JsonFileRestClient>();
#else
            _container.Singleton <IRequestClient, TrelloRestClient>();
#endif
            var network = _container.Get <INetworkService>();
            var client  = AugmentClient(_container);
            var trello  = new Trello(network, client);
            _container.Instance <ITrello>(trello);

            PhoneToolkitConventions.Install();
            TelerikConventions.Install();

            // Force creation
            _container.InstantiateInstancesOf <AbstractHandler>();
        }
Пример #12
0
        protected override void Configure()
        {
            container = new PhoneContainer(RootFrame);
            container.RegisterPhoneServices();

            container.PerRequest <MainPageViewModel>();

            ViewLocator.NameTransformer.AddRule(typeof(File).FullName, typeof(FileView).FullName);
            ViewLocator.NameTransformer.AddRule(typeof(Folder).FullName, typeof(FolderView).FullName);
        }
Пример #13
0
        protected override void Configure()
        {
            base.Configure();

            this.Container = new PhoneContainer();
            this.Container.RegisterPhoneServices(this.RootFrame);

            this.Container.PerRequest <HomePageViewModel>();
            this.Container.PerRequest <ScannerPageViewModel>();
        }
Пример #14
0
        protected override void Configure() {
            container = new PhoneContainer(RootFrame);

            container.RegisterPhoneServices();
            container.PerRequest<MainPageViewModel>();
            container.PerRequest<PivotPageViewModel>();
            container.PerRequest<TabViewModel>();

            AddCustomConventions();
        }
Пример #15
0
        protected override void Configure()
        {
            container = new PhoneContainer();

            container.RegisterPhoneServices(RootFrame);

            //add viewmodels registration here

            AddCustomConventions();
        }
Пример #16
0
        protected override void Configure()
        {
            _container = new PhoneContainer(RootFrame);

            _container.RegisterPhoneServices();

            RegisterCustomObjects(_container);

            AddCustomConventions();
        }
Пример #17
0
        protected override void Configure()
        {
            container = new PhoneContainer();

            if (!Execute.InDesignMode)
            {
                container.RegisterPhoneServices(RootFrame);
            }

            container.PerRequest <HomeViewModel>();
        }
Пример #18
0
        protected override void Configure() {
            container = new PhoneContainer();

            if (!Execute.InDesignMode)
                container.RegisterPhoneServices(RootFrame);

            container.PerRequest<MainPageViewModel>();
            container.PerRequest<MessageViewModel, MessageViewModel>();
            container.PerRequest<DialogViewModel, DialogViewModel>();

            AddCustomConventions();
        }
Пример #19
0
        protected override void Configure()
        {
            container = new PhoneContainer(this);

            container.RegisterPhoneServices();
            container.RegisterAllViewModelsForPages();

            //container.InstallChooser<PhoneNumberChooserTask, PhoneNumberResult>();
            //container.InstallLauncher<EmailComposeTask>();

            AddCustomConventions();
        }
 protected override void Configure()
 {
     container = new PhoneContainer();
     if (!Execute.InDesignMode)
     {
         container.RegisterPhoneServices(RootFrame);
     }
     container.PerRequest <MainPageViewModel>();
     container.PerRequest <IGoogleApiService, GoogleApiService>();
     container.PerRequest <PizzernatorDataContext>();
     container.PerRequest <RestaurantPreviewViewModel>();
 }
Пример #21
0
        protected override void Configure()
        {
            container = new PhoneContainer();
            container.RegisterPhoneServices(RootFrame);
            container.Singleton <IMessageService, MessageService>();

            //NOTE: don't register anything from the module assemblies here
            container.PerRequest <MainPageViewModel>();

            //NOTE: install the conventions
            ModuleConventions.Install();
        }
        protected override void Configure()
        {
            container = new PhoneContainer();

            container.RegisterSingleton(typeof(MainPageViewModel), "MainPageViewModel", typeof(MainPageViewModel));

            container.RegisterInstance(typeof(INavigationService), null, new FrameAdapter(RootFrame));
            container.RegisterInstance(typeof(IPhoneService), null, new PhoneApplicationServiceAdapter(PhoneService));

            //container.Activator.InstallChooser<PhoneNumberChooserTask, PhoneNumberResult>();
            //container.Activator.InstallLauncher<EmailComposeTask>();
        }
Пример #23
0
        protected override void Configure()
        {
            container = new PhoneContainer();
            if (!Execute.InDesignMode)
            {
                container.RegisterPhoneServices(RootFrame);
            }

            container.PerRequest <MainViewModel>();
            container.PerRequest <AddNewLocalizationViewModel>();
            container.PerRequest <WeatherViewModel>();

            AddCustomConventions();
        }
        public static object GetInstance(PhoneContainer container, System.Type service, string key)
        {
            var instance = container.GetInstance(service, key);

            if (instance != null)
                return instance;

            if (!service.Name.EndsWith("ViewModel"))
                return null;
                
            StaticViewModelLocator.InitializeViewModelsAssembly(service);

            return container.GetInstance(service, key);
        }
        protected override void Configure()
        {
            container = new PhoneContainer();

            container.RegisterSingleton(typeof(MainPageViewModel), "MainPageViewModel", typeof(MainPageViewModel));

            container.RegisterInstance(typeof(INavigationService), null, new FrameAdapter(RootFrame));
            container.RegisterInstance(typeof(IPhoneService), null, new PhoneApplicationServiceAdapter(PhoneService));

            //container.Activator.InstallChooser<PhoneNumberChooserTask, PhoneNumberResult>();
            //container.Activator.InstallLauncher<EmailComposeTask>();

            AddCustomConventions();
        }
Пример #26
0
        protected override void Configure()
        {
            _container = new PhoneContainer();

            if (!Execute.InDesignMode)
            {
                _container.RegisterPhoneServices(RootFrame);
                _container.PerRequest <MainViewModel>();
                _container.PerRequest <NewListViewModel>();
                _container.PerRequest <NewListItemsViewModel>();
            }

            AddCustomConventions();
        }
Пример #27
0
 protected override void Configure()
 {
     container = new PhoneContainer(RootFrame);
     container.RegisterPhoneServices();
     container.PerRequest <IDataContextWrapper, DataContextWrapper <ClientsManagerDataContext> >();
     container.PerRequest <ClientsListViewModel>();
     container.PerRequest <ClientEditViewModel>();
     container.PerRequest <GroupsListViewModel>();
     container.PerRequest <GroupAddViewModel>();
     container.PerRequest <GroupAddClientViewModel>();
     container.PerRequest <PhotoViewModel>();
     container.PerRequest <SkyDriveFolderChooserViewModel>();
     container.PerRequest <ClientsCriteriaListViewModel>();
     container.PerRequest <ClientsCriteriaViewModel>();
 }
Пример #28
0
        /// <summary>
        /// By default, we are configured to use MEF
        /// </summary>
        protected override void Configure()
        {
            this.container = new PhoneContainer(RootFrame);

            this.container.RegisterPhoneServices();

            this.container.Singleton <SelectCardViewModel>();
            this.container.PerRequest <CardViewModel>();
            this.container.PerRequest <ConfigViewModel>();
            this.container.PerRequest <AboutViewModel>();
            this.container.PerRequest <RulesViewModel>();
            this.container.PerRequest <ColorSetting>();
            this.container.PerRequest <AppSettingsStorageMechanism>();
            this.container.PerRequest <WebBrowserTask>();
        }
Пример #29
0
        protected override void Configure()
        {
            _container = new PhoneContainer(this);
            _container.RegisterPerRequest(typeof(MainPageViewModel), "MainPageViewModel", typeof(MainPageViewModel));
            _container.RegisterPerRequest(typeof(PageTwoViewModel), "PageTwoViewModel", typeof(PageTwoViewModel));
            _container.RegisterSingleton(typeof(TabViewModel), null, typeof(TabViewModel));

            _container.RegisterInstance(typeof(INavigationService), null, new FrameAdapter(RootFrame));
            _container.RegisterInstance(typeof(IPhoneService), null, new PhoneApplicationServiceAdapter(PhoneService));

            _container.Activator.InstallChooser<PhoneNumberChooserTask, PhoneNumberResult>();
            _container.Activator.InstallLauncher<EmailComposeTask>();

            AddCustomConventions();
        }
Пример #30
0
        protected override void Configure()
        {
            container = new PhoneContainer();

            if (!Execute.InDesignMode)
            {
                container.RegisterPhoneServices(RootFrame);
            }

            container.PerRequest <MainPageViewModel>();
            container.PerRequest <MessageViewModel, MessageViewModel>();
            container.PerRequest <DialogViewModel, DialogViewModel>();

            AddCustomConventions();
        }
Пример #31
0
        protected override async void Configure()
        {
            container = new PhoneContainer(RootFrame);
            container.RegisterPhoneServices();

            container
            .Singleton <IBookedFlightsService, BookedFlightsService>();

            container
            .PerRequest <MenuViewModel>()
            .PerRequest <FlightSearchViewModel>()
            .PerRequest <BookingsViewModel>();

            await VoiceCommandService.InstallCommandSetsFromFileAsync(new Uri("ms-appx:///resources/commands.xml"));
        }
        protected override void Configure()
        {
            if (RootFrame == null)
                return;

            container = new PhoneContainer();

            container.RegisterPhoneServices(RootFrame);

            // View Models
            container.PerRequest<MainViewModel>();

            // Services

            AddCustomConventions();
        }
Пример #33
0
        /// <summary>
        /// Override to configure the framework and setup your IoC container.
        /// </summary>
        protected override void Configure()
        {
            m_container = new PhoneContainer();

            m_container.RegisterSingleton(
                typeof(MainPageViewModel),
                "MainPageViewModel",
                typeof(MainPageViewModel));

            m_container.RegisterSingleton(
                typeof(ThreadingPageViewModel),
                "ThreadingPageViewModel",
                typeof(ThreadingPageViewModel));

            m_container.RegisterSingleton(
                typeof(SterlingPageViewModel),
                "SterlingPageViewModel",
                typeof(SterlingPageViewModel));

            m_container.RegisterSingleton(
                typeof(SterlingExtensionsPageViewModel),
                "SterlingExtensionsPageViewModel",
                typeof(SterlingExtensionsPageViewModel));

            m_container.RegisterSingleton(
                typeof(CodeOnlyPageViewModel),
                "CodeOnlyPageViewModel",
                typeof(CodeOnlyPageViewModel));

            m_container.RegisterInstance(
                typeof(ICargoRepository),
                null,
                new CargoRepository());

            m_container.RegisterInstance(
                typeof(INavigationService),
                null,
                new FrameAdapter(RootFrame));

            m_container.RegisterInstance(
                typeof(IPhoneService),
                null,
                new PhoneApplicationServiceAdapter(PhoneService));

            m_container.Activator.InstallChooser <PhoneNumberChooserTask, PhoneNumberResult>();
            m_container.Activator.InstallLauncher <EmailComposeTask>();
        }
Пример #34
0
        private void RegisterServices(PhoneContainer container)
        {
            container.RegisterHandler(typeof(IGlobalBusyIndicatorManager), string.Empty,
                                      c => GlobalBusyIndicatorManager.Create((PhoneApplicationPage)RootFrame.Content));

            container.Singleton <IServiceConfiguration, ServiceConfiguration>();
            container.Singleton <IWebConfiguration, WebConfiguration>();
            container.PerRequest <IApplicationConfiguration, ApplicationConfiguration>();

            container.PerRequest <IRequestBodyBuilder, RequestBodyBuilder>();
            container.PerRequest <IWebChannel, ZabbixWebChannel>();

            container.PerRequest <IUserProxyServer, ZabbixUserProxyServer>();
            container.PerRequest <IUserManagmentFacade, UserManagmentFacade>();
            container.PerRequest <IHostGroupProxyServer, ZabbixHostGroupProxyServer>();
            container.PerRequest <IHostProxyServer, ZabbixHostProxyServer>();
            container.PerRequest <ITriggerProxyServer, ZabbixTriggerProxyServer>();
            container.PerRequest <IEventProxyServer, ZabbixEventProxyServer>();
            container.PerRequest <IServerChecker, ZabbixServerChecker>();
            container.PerRequest <IGraphsProxyServer, ZabbixGraphsProxyServer>();
            container.PerRequest <IDataProxyServer, ZabbixDataProxyServer>();

            container.PerRequest <IDeviceManagementService, DeviceManagementService>();
            container.Singleton <IPushChannelService, PushChannelService>();

            container.Singleton <IApplicationSettings, ApplicationSettings>();
            container.PerRequest <ISettingsStorage, SettingsStorage>();
            container.PerRequest <IErrorHandler, ErrorHandler>();
            container.PerRequest <IErrorReporter, ErrorReporter>();
            container.PerRequest <IMessagingService, MessagingService>();
            container.PerRequest <IDeviceInformationManager, DeviceInformationManager>();
            container.PerRequest <INetworkStateManager, NetworkStateManager>();

            container.Singleton <IFavoritesStorage <Trigger>, FavoritesStorage <Trigger> >();
            container.Singleton <IFavoritesStorage <Graph>, FavoritesStorage <Graph> >();
            container.PerRequest <IIsolatedStorageFactory, IsolatedStorageFactory>();

            container.Singleton <IAnalyticsService, FlurryAnalytics>();

            var navigationServiceResolver = new NavigationServiceResolver(RootFrame);

            container.RegisterInstance(typeof(INavigationServiceResolver), null, navigationServiceResolver);

            container.Singleton <AnaliticsNavigationPageLogger>();
            container.GetInstance(typeof(AnaliticsNavigationPageLogger), null);
        }
        protected override void Configure()
        {
            container = new PhoneContainer(RootFrame);

            container.RegisterPhoneServices();
            container.PerRequest <MainViewModel>();
            container.PerRequest <DetailsViewModel>();
            container.PerRequest <PhotoShareViewModel>();
            container.PerRequest <ITalao, Talao>();
            container.RegisterSingleton(typeof(IMultasRealizadas), null, typeof(MultasRealizadas));
            container.Instance <IObjectStorageHelper <ListaDeMultasRealizadas> >(new ObjectStorageHelper <ListaDeMultasRealizadas>());
            AddCustomConventions();
#if DEBUG
            //LogManager.GetLog = type => new DebugLogger(type);
#endif
            MapeiaRootFrame();
        }
Пример #36
0
        protected override void Configure()
        {
            _container = new PhoneContainer();

            _container.RegisterPhoneServices(RootFrame);

            RegisterNavigation();
            RegisterServices();

            _container.PerRequest <MainPageViewModel>();
            _container.PerRequest <UserProfilePageViewModel>();
            _container.PerRequest <PhotosPageViewModel>();

            AddCustomConventions();

            InteractionEffectManager.AllowedTypes.Add(typeof(Border));
        }
Пример #37
0
        protected override void Configure()
        {
            container = new PhoneContainer(RootFrame);

            if (!Execute.InDesignMode)
            {
                container.RegisterPhoneServices();
            }

            container.PerRequest <MainPageViewModel>();
            container.PerRequest <ArPageViewModel>();
            container.PerRequest <EarlierPageViewModel>();
            container.PerRequest <ReadArticlePageViewModel>();
            container.PerRequest <SettingsPageViewModel>();

            AddCustomConventions();
        }
Пример #38
0
        protected override void Configure()
        {
            container = new PhoneContainer(RootFrame);

            container.RegisterPhoneServices();
            container.PerRequest <LoginViewModel>();
            container.PerRequest <GroupListViewModel>();
            container.PerRequest <GroupDetailsViewModel>();
            container.PerRequest <AddDebtViewModel>();
            container.PerRequest <MainPanoramaPageViewModel>();
            container.AllTypesOf <IPage>(Assembly.GetExecutingAssembly());

            container.Singleton <RegistrationService>();
            container.Singleton <WalleetServiceClient>();

            AddCustomConventions();
        }
 /// <summary>
 /// Override to setup the IoC container for this module.
 /// </summary>
 /// <param name="container">The parent IoC container.</param>
 protected abstract void Configure(PhoneContainer container);