protected override IApplicationComponent CreateComponent()
        {
            NBIASearchCoordinator       coordinator = new NBIASearchCoordinator();
            NBIASearchCriteriaComponent nbiaSearchCriteriaComponent = new NBIASearchCriteriaComponent(coordinator);

            Table <NBIASearchResult> table = new Table <NBIASearchResult>();

            InitializeResultsTable(table);
            SearchResultsComponent resultsComponent = new SearchResultsComponent(ToolbarSite, MenuSite, ToolNamespace, new NBIASearchResultsToolExtensionPoint(), table);

            coordinator.SetSearchResultsComponent(resultsComponent);

            SplitPane topPane          = new SplitPane("Search", nbiaSearchCriteriaComponent, true);
            SplitPane bottomTopPane    = new SplitPane("Results", resultsComponent, 2.0f);
            SplitPane bottopBottomPane = new SplitPane("Retrieve Progress", base.CreateRetrieveProgressComponent(), 1.0f);
            SplitPane bottomPane       = new SplitPane("All Results", new SplitComponentContainer(bottomTopPane, bottopBottomPane, SplitOrientation.Horizontal), false);

            return(new SplitComponentContainer(topPane, bottomPane, SplitOrientation.Horizontal));
        }
Пример #2
0
 internal NBIASearchCriteriaComponent(NBIASearchCoordinator coordinator)
 {
     _coordinator = coordinator;
     _coordinator.SetSearchCriteriaComponent(this);
     _searchModalities = new List <string>();
 }