Beispiel #1
0
        public ViewResult SearchTabs(TabsViewModel viewModel)
        {
            XDocument tabsource = xmlSourceFactory.TabSource();

            TabsViewModelBuilder modelBuilder = new TabsViewModelBuilder(viewModel, tabsource, tabsRepository, jewelRepository, fileSystem);

            viewModel = modelBuilder.Build();
            viewModel.PathBarItems = pathBarGenerator.GenerateUsing <TabsPathBarResolver, ITabsViewModel>(viewModel);

            return(View("PresentTabs", viewModel));
        }
Beispiel #2
0
        public TabsRepository(IXmlSourceFactory sourceFactory)
        {
            var xmldoc = sourceFactory.TabSource();
            if (xmldoc == null)
            {
                throw new ArgumentNullException("The xmldoc was null");
            }

            base.tabsource = xmldoc;

               // LoadTabsFromXML();
        }
Beispiel #3
0
        public TabsRepository(IXmlSourceFactory sourceFactory)
        {
            var xmldoc = sourceFactory.TabSource();

            if (xmldoc == null)
            {
                throw new ArgumentNullException("The xmldoc was null");
            }

            base.tabsource = xmldoc;

            // LoadTabsFromXML();
        }
        public ActionResult ChooseSetting(ChooseSettingViewModel chooseSettingViewModel)
        {
            var tabsource = xmlSourceFactory.TabSource();

            var tabsViewModelBuilder = new TabsViewModelBuilder(chooseSettingViewModel, tabsource, tabsRepository, jewelRepository, fileSystem);

            var tabsForJewelNavigation = new TabsForJewelDesignNavigationBuilder(chooseSettingViewModel, diamondRepository,
                                                                                 jewelRepository, webHelpers);

            tabsForJewelNavigation.WhichTabToHighLight(NagivationTabType.ChooseSetting);


            var builder = new ChooseSettingViewModelBuilder(chooseSettingViewModel, tabsViewModelBuilder, tabsForJewelNavigation);

            var viewModel = builder.Build();

            viewModel.PathBarItems = pathBarGenerator.GenerateUsing <TabsPathBarResolver, ITabsViewModel>(viewModel);

            return(View(viewModel));
        }