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>();
 }
Ejemplo n.º 2
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>();
        }
Ejemplo n.º 3
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]);
 }
Ejemplo n.º 4
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>();
        }
Ejemplo n.º 5
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>();
 }