public EditTimeProfileAnalysisChartPresenter( IEditTimeProfileAnalysisChartView view, ITimeProfileChartPresenter timeProfileChartPresenter, ITimeProfileChartDataCreator timeProfileChartDataCreator, IPopulationSimulationAnalysisStarter populationSimulationAnalysisStarter, IPopulationAnalysisTask populationAnalysisTask, IColorGenerator colorGenerator, IObservedDataTask observedDataTask, IPopulationPKAnalysisPresenter pkAnalysisPresenter, IDimensionRepository dimensionRepository, IPresentationSettingsTask presentationSettingsTask) : base(view, timeProfileChartPresenter, timeProfileChartDataCreator, populationSimulationAnalysisStarter, populationAnalysisTask, ApplicationIcons.TimeProfileAnalysis) { _colorGenerator = colorGenerator; _observedDataTask = observedDataTask; _pkAnalysisPresenter = pkAnalysisPresenter; _dimensionRepository = dimensionRepository; _presentationSettingsTask = presentationSettingsTask; _timeProfileAnalysisChartView = view; timeProfileChartPresenter.DragDrop += OnDragDrop; timeProfileChartPresenter.DragOver += OnDragOver; timeProfileChartPresenter.ObservedDataSettingsChanged += RefreshData; _chartDisplayMode = ChartDisplayMode.Chart; _observedDataDragDropBinder = new ObservedDataDragDropBinder(); _timeProfileAnalysisChartView.SetChartView(_populationAnalysisChartPresenter.BaseView); _timeProfileAnalysisChartView.SetPKAnalysisView(_pkAnalysisPresenter.BaseView); }
protected ChartPresenter( TView view, ChartPresenterContext chartPresenterContext, IChartTemplatingTask chartTemplatingTask, IIndividualPKAnalysisPresenter pkAnalysisPresenter, IChartTask chartTask, IObservedDataTask observedDataTask, IChartUpdater chartUpdater, bool useSimulationNameToCreateCurveName) : base(view, chartPresenterContext) { _chartTask = chartTask; _observedDataTask = observedDataTask; _chartUpdater = chartUpdater; _useSimulationNameToCreateCurveName = useSimulationNameToCreateCurveName; _view.SetChartView(chartPresenterContext.EditorAndDisplayPresenter.BaseView); _pkAnalysisPresenter = pkAnalysisPresenter; _view.SetPKAnalysisView(_pkAnalysisPresenter.View); AddSubPresenters(_pkAnalysisPresenter); _chartTemplatingTask = chartTemplatingTask; _repositoryCache = new Cache <DataRepository, IndividualSimulation> { OnMissingKey = noDataForSimulation }; ChartEditorPresenter.SetShowDataColumnInDataBrowserDefinition(IsColumnVisibleInDataBrowser); ChartDisplayPresenter.DragDrop += OnDragDrop; ChartDisplayPresenter.DragOver += OnDragOver; ChartDisplayPresenter.ExportToPDF = () => _chartTask.ExportToPDF(Chart); AddAllButtons(); _chartDisplayMode = ChartDisplayMode.Chart; _observedDataDragDropBinder = new ObservedDataDragDropBinder(); }
protected virtual void ShowAnalysis() { _chartDisplayMode = ChartDisplayMode.PKAnalysis; CalculatePKAnalysis(); _view.ShowPKAnalysisView(); }
protected virtual void ShowChart() { _chartDisplayMode = ChartDisplayMode.Chart; _view.ShowChartView(); }
private void showAnalysis() { _chartDisplayMode = ChartDisplayMode.PKAnalysis; calculatePKAnalysis(); _timeProfileAnalysisChartView.ShowPKAnalysisView(); }
private void showChart() { _chartDisplayMode = ChartDisplayMode.Chart; _timeProfileAnalysisChartView.ShowChartView(); }
public void SetChartOptions(ChartDisplayMode mode, SortingOption sorting) { Sorting = sorting; Mode = mode; DrawChart(PathsInSortedOrder); }