Exemplo n.º 1
0
 public SubjectsControl()
 {
     InitializeComponent();
     TabController = new TaxonomyTabController(uxSubjectsKeywords, uxSubjectsViewTree, uxSubjectsViewSearch,
                                               uxSubjectsResults, uxSubjectsResultsTree, uxSubjectsSelected,
                                               uxArrowUp, uxArrowDown);
 }
Exemplo n.º 2
0
 public TaxonomyControl()
 {
     InitializeComponent();
     TabController = new TaxonomyTabController(uxGeographyKeywords, uxGeographyViewTree, uxGeographyViewSearch,
                                               uxGeographyResults, uxGeographyResultsTree, uxGeographySelected,
                                               uxArrowUp, uxArrowDown);
 }
Exemplo n.º 3
0
        protected void InitializeControllers()
        {
            List <SitecoreTree.TaxonomyStruct> industries = _scTree.SearchIndustries("").ToList();
            HDirectoryStruct industryDirectory            = _scTree.GetHierarchyByGuid(new Guid(Constants.INDUSTRY_GUID));

            Guid subjectGuid = new Guid(Constants.SUBJECT_GUID);
            List <SitecoreTree.TaxonomyStruct> subjects = _scTree.SearchTaxonomy(subjectGuid, "").ToList();
            HDirectoryStruct subjectDirectory           = _scTree.GetHierarchyByGuid(subjectGuid);

            Guid regionGuid = new Guid(Constants.REGION_GUID);
            List <SitecoreTree.TaxonomyStruct> regions = _scTree.SearchTaxonomy(regionGuid, "").ToList();
            HDirectoryStruct regionDirectory           = _scTree.GetHierarchyByGuid(regionGuid);

            Guid therapeuticCategoryGuid = new Guid(Constants.THERAPEUTIC_CATEGORY_GUID);
            List <SitecoreTree.TaxonomyStruct> therapeuticCategories = _scTree.SearchTaxonomy(therapeuticCategoryGuid, "").ToList();
            HDirectoryStruct therapeuticCategoryDirectory            = _scTree.GetHierarchyByGuid(therapeuticCategoryGuid);

            Guid marketSegmentGuid = new Guid(Constants.MARKET_SEGMENT_GUID);
            List <SitecoreTree.TaxonomyStruct> marketSegments = _scTree.SearchTaxonomy(marketSegmentGuid, "").ToList();
            HDirectoryStruct marketSegmentDirectory           = _scTree.GetHierarchyByGuid(marketSegmentGuid);

            _industryTabController = new TaxonomyTabController(uxIndustriesKeywords, uxIndustriesViewTree, uxIndustriesViewSearch,
                                                               uxIndustriesResults, uxIndustriesResultsTree, uxIndustriesSelected, industries, industryDirectory,
                                                               uxIndustriesIcon, tabControl1, tabControl1.TabPages[4]);

            _subjectTabController = new TaxonomyTabController(uxSubjectsKeywords, uxSubjectsViewTree, uxSubjectsViewSearch, uxSubjectsResults,
                                                              uxSubjectsResultsTree, uxSubjectsSelected, subjects, subjectDirectory, uxSubjectsIcon, tabControl1, tabControl1.TabPages[5]);

            _geographyTabController = new TaxonomyTabController(uxGeographyKeywords, uxGeographyViewTree, uxGeographyViewSearch, uxGeographyResults,
                                                                uxGeographyResultsTree, uxGeographySelected, regions, regionDirectory, uxGeographyIcon, tabControl1, tabControl1.TabPages[6]);

            _therapeuticCategoriesTabController = new TaxonomyTabController(uxTherapeuticCategoriesKeywords, uxTherapeuticCategoriesViewTree, uxTherapeuticCategoriesViewSearch,
                                                                            uxTherapeuticCategoriesResults, uxTherapeuticCategoriesResultsTree, uxTherapeuticCategoriesSelected, therapeuticCategories,
                                                                            therapeuticCategoryDirectory, uxTherapeuticCategoriesIcon, tabControl1, tabControl1.TabPages[7]);

            _marketSegmentsTabController = new TaxonomyTabController(uxMarketSegmentsKeywords, uxMarketSegmentsViewTree, uxMarketSegmentsViewSearch, uxMarketSegmentsResults,
                                                                     uxMarketSegmentsResultsTree, uxMarketSegmentsSelected, marketSegments, marketSegmentDirectory, uxMarketSegmentsIcon, tabControl1, tabControl1.TabPages[8]);

            tabControl1.TabPages[4].Tag = _industryTabController;
            tabControl1.TabPages[5].Tag = _subjectTabController;
            tabControl1.TabPages[6].Tag = _geographyTabController;
            tabControl1.TabPages[7].Tag = _therapeuticCategoriesTabController;
            tabControl1.TabPages[8].Tag = _marketSegmentsTabController;

            _taxonomyTabControllers.Add(_industryTabController);
            _taxonomyTabControllers.Add(_subjectTabController);
            _taxonomyTabControllers.Add(_geographyTabController);
            _taxonomyTabControllers.Add(_therapeuticCategoriesTabController);
            _taxonomyTabControllers.Add(_marketSegmentsTabController);

            loginControl1.ToReveal = uxArticlePanel;


            if (SitecoreUser.GetUser().LoggedIn)
            {
                loginControl1.HideLogin();
            }

            Image collapsedImage = Properties.Resources.right_icon;
            Image expandedImage  = Properties.Resources.down_icon;

            _industriesExpandPanel = new ExpandFlowPanel(uxSummaryIndustriesExpand, uxSummaryIndustriesFlow,
                                                         expandedImage, collapsedImage);
            _subjectsExpandPanel = new ExpandFlowPanel(uxSummarySubjectsExpand, uxSummarySubjectsFlow,
                                                       expandedImage, collapsedImage);
            _geographyExpandPanel = new ExpandFlowPanel(uxSummaryGeographyExpand, uxSummaryGeographyFlow,
                                                        expandedImage, collapsedImage);
            _therapeuticCategoriesExpandPanel = new ExpandFlowPanel(uxSummaryTherapeuticCategoriesExpand,
                                                                    uxSummaryTherapeuticCategoriesFlow, expandedImage, collapsedImage);
            _marketSegmentsExpandPanel = new ExpandFlowPanel(uxSummaryMarketSegmentsExpand, uxSummaryMarketSegmentsFlow,
                                                             expandedImage, collapsedImage);
        }