public IApplicationComponent CreateComponent()
        {
            var table = new Table <AimeAnnotationContainer>();

            InitializeResultsTable(table);

            var coordinator       = new AimDataServiceSearchCoordinator();
            var criteriaComponent = new AimDataServiceSearchCriteriaComponent(coordinator);

            coordinator.CriteriaComponent = criteriaComponent;
            var topPane = new SplitPane("Search", criteriaComponent, true);

            var searchResultsComponent = new AimDataServiceSearchResultsComponent(
                ToolbarSite,
                MenuSite,
                ToolNamespace,
                new AimSearchResultsToolExtensionPoint(),
                table);

            coordinator.SearchResultsComponent = searchResultsComponent;

            var bottomPane = new SplitPane("Results", searchResultsComponent, false);

            return(new SplitComponentContainer(topPane, bottomPane, SplitOrientation.Horizontal));
        }
Example #2
0
 internal AimDataServiceSearchCriteriaComponent(AimDataServiceSearchCoordinator coordinator)
 {
     _coordinator   = coordinator;
     SearchCriteria = new AimeSearchCriteria();
 }