public PopulationAnalysisOutputSelectionPresenter( IPopulationAnalysisOutputSelectionView view, IQuantityListPresenter allOutputsPresenter, IPopulationAnalysisOutputFieldsPresenter selectedOutputsPresenter, IPopulationAnalysisStatisticsSelectionPresenter statisticsSelectionPresenter, IEntitiesInContainerRetriever outputsRetriever, IEventPublisher eventPublisher, IDimensionRepository dimensionRepository, IQuantityPathToQuantityDisplayPathMapper quantityDisplayPathMapper) : base(view) { _allOutputsPresenter = allOutputsPresenter; _selectedOutputsPresenter = selectedOutputsPresenter; _statisticsSelectionPresenter = statisticsSelectionPresenter; _outputsRetriever = outputsRetriever; _eventPublisher = eventPublisher; _quantityDisplayPathMapper = quantityDisplayPathMapper; _timeDimension = dimensionRepository.Time; AddSubPresenters(allOutputsPresenter, _selectedOutputsPresenter, _statisticsSelectionPresenter); _view.AddPopulationOutputsView(_allOutputsPresenter.View); _view.AddSelectedOutputsView(_selectedOutputsPresenter.View); _view.AddStatisticsSelectionView(_statisticsSelectionPresenter.View); _allOutputsPresenter.QuantityDoubleClicked += (o, e) => addOutput(e.Quantity); _allOutputsPresenter.Hide(QuantityColumn.Selection); _statisticsSelectionPresenter.SelectionChanged += (o, e) => selectionChanged(); _allOutputsPresenter.ExpandAllGroups = true; }
public void Hide(PathElementId pathElementId) { _allQuantityListPresenter.Hide(pathElementId); _selectedQuantityListPresenter.Hide(pathElementId); }