예제 #1
0
        protected override void RegisterTypes(Prism.Ioc.IContainerRegistry containerRegistry)
        {
            Debug.WriteLine($"**** {this.GetType().Name}.{nameof(RegisterTypes)})");
            containerRegistry.RegisterForNavigation <NavigationPage>();
            containerRegistry.RegisterForNavigation <MainPage, DineNDashHomePageViewModel>();
            containerRegistry.RegisterForNavigation <ChooseSeatingPage, ChooseSeatingPageViewModel>();
            containerRegistry.RegisterForNavigation <CashPage, CashPageViewModel>();
            containerRegistry.RegisterForNavigation <PaymentPage, PaymentPageViewModel>();
            containerRegistry.RegisterForNavigation <CreditInfoPage, CreditInfoPageViewModel>();
            containerRegistry.RegisterForNavigation <ConfirmationPage, ConfirmationPageViewModel>();
            containerRegistry.RegisterForNavigation <RatingsPage, RatingsPageViewModel>();
            containerRegistry.RegisterForNavigation <CartPage, CartPageViewModel>();
            containerRegistry.RegisterForNavigation <MenuOneContainerPage, MenuOneContainerPageViewModel>();
            containerRegistry.RegisterForNavigation <TabMealPage, TabMealPageViewModel>();
            containerRegistry.RegisterForNavigation <TabIndivItemPage, TabIndivItemPageViewModel>();
            containerRegistry.RegisterForNavigation <TabDrinkPage, TabDrinkPageViewModel>();
            containerRegistry.RegisterForNavigation <TabSideAndDrinksPage, TabSideAndDrinksPageViewModel>();
            containerRegistry.RegisterForNavigation <TabSandwichesPage, TabSandwichesPageViewModel>();
            containerRegistry.RegisterForNavigation <RestaurantSidePage, RestaurantSidePageViewModel>();
            containerRegistry.RegisterForNavigation <GetStartedPage, GetStartedPageViewModel>();
            containerRegistry.RegisterForNavigation <LearnMorePage, LearnMorePageViewModel>();
            containerRegistry.RegisterForNavigation <SubwaySeatPage, SubwaySeatPageViewModel>();
            containerRegistry.RegisterForNavigation <MenuTwoContainerPage, MenuTwoContainerPageViewModel>();
            containerRegistry.RegisterForNavigation <LoginPage, LoginPageViewModel>();
            containerRegistry.RegisterForNavigation <CallsPage, CallsPageViewModel>();
            containerRegistry.RegisterForNavigation <CallsSubPage, CallsSubPageViewModel>();
            containerRegistry.RegisterForNavigation <PaymentSubPage, PaymentSubPageViewModel>();
            containerRegistry.RegisterForNavigation <CashSubPage, CashSubPageViewModel>();
            containerRegistry.RegisterForNavigation <CreditInfoSubPage, CreditInfoSubPageViewModel>();
            containerRegistry.RegisterForNavigation <ConfirmationSubPage, ConfirmationSubPageViewModel>();
            containerRegistry.RegisterForNavigation <CartSubPage, CartSubPageViewModel>();

            containerRegistry.RegisterSingleton <IRepository, Repository>();
        }
 protected override void RegisterTypes(Prism.Ioc.IContainerRegistry containerRegistry)
 {
     Debug.WriteLine($"**** {this.GetType().Name}.{nameof(RegisterTypes)})");
     containerRegistry.RegisterForNavigation <NavigationPage>();
     containerRegistry.RegisterForNavigation <LoginPage, LoginPageViewModel>();
     containerRegistry.RegisterForNavigation <RegisrationPage, RegisrationViewModel>();
     containerRegistry.RegisterForNavigation <MainPage, HostnoMoreHomePageViewModel>();
     containerRegistry.RegisterForNavigation <CallsPage, CallsPageViewModel>();
     containerRegistry.RegisterForNavigation <CallsChickFilaPage, CallsChickFilaPageViewModel>();
     containerRegistry.RegisterForNavigation <ChooseSeatingPage, ChooseSeatingPageViewModel>();
     containerRegistry.RegisterForNavigation <ChickFilaSeatPage, ChickFilaSeatPageViewModel>();
     containerRegistry.RegisterForNavigation <ComboPage, ComboPageViewModel>();
     containerRegistry.RegisterForNavigation <ComboPage1, ComboPageViewModel1>();
     containerRegistry.RegisterForNavigation <SidePage, SidePageViewModel>();
     containerRegistry.RegisterForNavigation <SidePage1, SidePageViewModel1>();
     containerRegistry.RegisterForNavigation <Blog>();
     containerRegistry.RegisterForNavigation <EntreeSelectionPage, EntreeSelectionPageViewModel>();
     containerRegistry.RegisterForNavigation <Entree, EntreeViewModel>();
     containerRegistry.RegisterForNavigation <EntreeSelectionPage1, EntreeSelectionPageViewModel1>();
     containerRegistry.RegisterForNavigation <Entree1, EntreeViewModel1>();
     containerRegistry.RegisterForNavigation <MenuOneContainerPage, MenuOneContainerPageViewModel>();
     containerRegistry.RegisterForNavigation <MenuTwoContainerPage, MenuTwoContainerPageViewModel>();
     containerRegistry.RegisterForNavigation <CartChickFilaPage, CartChickFilaPageViewModel>();
     containerRegistry.RegisterForNavigation <CartPage, CartPageViewModel>();
     containerRegistry.RegisterForNavigation <CashPage, CashPageViewModel>();
     containerRegistry.RegisterForNavigation <PaymentPage, PaymentPageViewModel>();
     containerRegistry.RegisterForNavigation <CreditInfoPage, CreditInfoPageViewModel>();
     containerRegistry.RegisterForNavigation <PaymentChickFilaPage, PaymentChickFilaPageViewModel>();
     containerRegistry.RegisterForNavigation <CreditInfoChickFilaPage, CreditInfoChickFilaPageViewModel>();
     containerRegistry.RegisterForNavigation <ConfirmationPage, ConfirmationPageViewModel>();
     containerRegistry.RegisterForNavigation <RestaurantSidePage, RestaurantSidePageViewModel>();
     containerRegistry.RegisterForNavigation <ConfirmationChickFilaPage, ConfirmationChickFilaPageViewModel>();
     containerRegistry.RegisterSingleton <IRepository, Repository>();
 }
예제 #3
0
        protected override void RegisterTypes(Prism.Ioc.IContainerRegistry containerRegistry)
        {
            Debug.WriteLine($"**** {this.GetType().Name}.{nameof(RegisterTypes)}");

            containerRegistry.RegisterForNavigation <MainPage, MainPageViewModel>();
            containerRegistry.RegisterForNavigation <TouristSpotsYelp, TouristSpotsPageViewModel>();
        }
        public void RegisterTypes(Prism.Ioc.IContainerRegistry containerRegistry)
        {
            containerRegistry.Register <IWatchListService, WatchListService>();

            ViewModelLocationProvider.Register <WatchListView, WatchListViewModel>();
            ViewModelLocationProvider.Register <AddWatchView, AddWatchViewModel>();
        }
        protected override void RegisterTypes(Prism.Ioc.IContainerRegistry containerRegistry)
        {
            containerRegistry.RegisterInstance(CrossSecureStorage.Current);
            containerRegistry.RegisterInstance(CrossShare.Current);
            containerRegistry.RegisterInstance(UserDialogs.Instance);

            containerRegistry.RegisterForNavigation <NavigationPage>();
        }
예제 #6
0
        protected override void RegisterTypes(Prism.Ioc.IContainerRegistry containerRegistry)
        {
            containerRegistry.RegisterForNavigation <NavigationPage>();
            containerRegistry.RegisterForNavigation <MainPage>();

            containerRegistry.RegisterForNavigation <ExamplePopupPage>();

            containerRegistry.RegisterPopupNavigationService();
        }
예제 #7
0
 protected override void RegisterTypes(Prism.Ioc.IContainerRegistry containerRegistry)
 {
     Debug.WriteLine($"**** {this.GetType().Name}.{nameof(RegisterTypes)}");
     containerRegistry.RegisterForNavigation <NavigationPage>();
     containerRegistry.RegisterForNavigation <MainPage, MainPageViewModel>();
     containerRegistry.RegisterForNavigation <TouristSpotsYelp, TouristSpotsPageViewModel>();
     containerRegistry.RegisterForNavigation <TravelAppContainerPage, TravelAppCointerViewModel>();
     containerRegistry.RegisterForNavigation <LoginPage, LoginPageViewModel>();
     containerRegistry.RegisterForNavigation <RegisterPage, RegisterPageViewModel>();
     containerRegistry.RegisterForNavigation <Favorites, FavoritesPageViewModel>();
 }
예제 #8
0
        protected override void RegisterTypes(Prism.Ioc.IContainerRegistry containerRegistry)
        {
            Debug.WriteLine($"**** {this.GetType().Name}.{nameof(RegisterTypes)}");

            containerRegistry.RegisterForNavigation <NavigationPage>();
            containerRegistry.RegisterForNavigation <CS481FinalPage, CS481FinalPageViewModel>();
            containerRegistry.RegisterForNavigation <LogPage, LogPageViewModel>();
            containerRegistry.RegisterForNavigation <AddItemPage, AddItemPageViewModel>();
            containerRegistry.RegisterForNavigation <AboutPage, AboutPageViewModel>();
            containerRegistry.RegisterForNavigation <CreatorsPage, CreatorsPageViewModel>();
            containerRegistry.RegisterSingleton <IRepository, Repository>();
        }
예제 #9
0
 protected override void RegisterTypes(IContainerRegistry containerRegistry)
 {
     containerRegistry.RegisterSingleton <IRepository <Artist>, SqlRepository <Artist> >();
     containerRegistry.RegisterSingleton <IRepository <Publisher>, SqlRepository <Publisher> >();
     containerRegistry.RegisterSingleton <IRepository <Series>, SqlRepository <Series> >();
     containerRegistry.RegisterSingleton <IRepository <ComicBook>, SqlRepository <ComicBook> >();
     containerRegistry.RegisterSingleton <IRepository <ComicBookArtist>, SqlRepository <ComicBookArtist> >();
     containerRegistry.RegisterSingleton <IOpenable <User>, SqlRepository <User> >();
     containerRegistry.RegisterSingleton <IRepository <Order>, SqlRepository <Order> >();
     containerRegistry.RegisterSingleton <DbContext, ShopDbEntities>();
     containerRegistry.Register <IUserEmployeeFilterFactory, DbRoleFilterFactory>();
     containerRegistry.RegisterInstance(typeof(User[]), new User[1]);
 }
예제 #10
0
 protected override void RegisterTypes(Prism.Ioc.IContainerRegistry containerRegistry)
 {
     Debug.WriteLine($"**** {this.GetType().Name}.{nameof(RegisterTypes)})");
     containerRegistry.RegisterForNavigation <NavigationPage>();
     containerRegistry.RegisterForNavigation <MainPage, HostnoMoreHomePageViewModel>();
     containerRegistry.RegisterForNavigation <ChooseSeatingPage, ChooseSeatingPageViewModel>();
     //ontainerRegistry.RegisterForNavigation<CashPage, CashPageViewModel>();
     // containerRegistry.RegisterForNavigation<PaymentPage, PaymentPageViewModel>();
     // containerRegistry.RegisterForNavigation<CreditInfoPage, CreditInfoPageViewModel>();
     /// containerRegistry.RegisterForNavigation<ConfirmationPage, ConfirmationPageViewModel>();
     // containerRegistry.RegisterForNavigation<RatingsPage, RatingsPageViewModel>();
     // containerRegistry.RegisterForNavigation<CartPage, CartPageViewModel>();
     // containerRegistry.RegisterForNavigation<MenuOneContainerPage, MenuOneContainerPageViewModel>();
     // containerRegistry.RegisterForNavigation<TabMealPage, TabMealPageViewModel>();
     // containerRegistry.RegisterForNavigation<TabIndivItemPage, TabIndivItemPageViewModel>();
     // containerRegistry.RegisterForNavigation<TabDrinkPage, TabDrinkPageViewModel>();
     containerRegistry.RegisterSingleton <IRepository, Repository>();
 }
        public void RegisterTypes(Prism.Ioc.IContainerRegistry containerRegistry)
        {
            //this.container.RegisterInstance(typeof(INewsFeedService),
            //                                container.Resolve<NewsFeedService>());
            containerRegistry.Register <INewsFeedService>(() => container.Resolve <NewsFeedService>());

            //this.container.RegisterInstance(typeof(ArticleViewModel),
            //                                container.Resolve<ArticleViewModel>());
            //containerRegistry.Register<ArticleViewModel>(() => container.Resolve<ArticleViewModel>());
            containerRegistry.Register <ArticleViewModel>();

            //this.container.RegisterInstance(typeof(NewsReaderViewModel),
            //                                container.Resolve<NewsReaderViewModel>());
            //containerRegistry.Register<NewsReaderViewModel>(() => container.Resolve<NewsReaderViewModel>());
            containerRegistry.Register <NewsReaderViewModel>();

            //this.container.RegisterInstance(typeof(INewsController),
            //                                container.Resolve<NewsController>());
            //containerRegistry.Register<INewsController>(() => container.Resolve<NewsController>());
            containerRegistry.Register <INewsController, NewsController>();
        }
예제 #12
0
 protected override void RegisterTypes(Prism.Ioc.IContainerRegistry containerRegistry)
 {
 }
예제 #13
0
 protected override void RegisterTypes(Prism.Ioc.IContainerRegistry containerRegistry)
 {
     //containerRegistry.RegisterForNavigation<NavigationPage>();
     //   containerRegistry.RegisterForNavigation<MainPage, TravelAppPageViewModel>();
     containerRegistry.RegisterForNavigation <MainPage>();
 }
예제 #14
0
 public static IContainer GetContainer(this IContainerRegistry containerRegistry)
 {
     return(((IContainerExtension <IContainer>)containerRegistry).Instance);
 }
예제 #15
0
 protected override void RegisterTypes(Prism.Ioc.IContainerRegistry containerRegistry)
 {
     containerRegistry.RegisterForNavigation <MainPage, IntroToPrismsPageViewModel>();
 }
 public void RegisterTypes(Prism.Ioc.IContainerRegistry containerRegistry)
 {
     containerRegistry.Register <IMarketFeedService, MarketFeedService>();
     containerRegistry.Register <IMarketHistoryService, MarketHistoryService>();
     containerRegistry.Register <TrendLineViewModel, TrendLineViewModel>();
 }