Exemplo n.º 1
0
        private void Ribbon_Load(object sender, RibbonUIEventArgs e)
        {
            // Initialize the required classes to work.
            dataSetManagerPresenter        = new DataSetManagerPresenter();
            lagPresenter                   = new LagPresenter(dataSetManagerPresenter);
            xrChartPresenter               = new XRChartPresenter(dataSetManagerPresenter);
            pChartPresenter                = new PChartPresenter(dataSetManagerPresenter);
            dummyPresenter                 = new DummyPresenter(dataSetManagerPresenter);
            processCapabilityPresenter     = new ProcessCapabilityPresenter(dataSetManagerPresenter);
            timeSeriesGraphPresenter       = new TimeSeriesGraphPresenter(dataSetManagerPresenter);
            oneVariableSummaryPresenter    = new OneVariableSummaryPresenter(dataSetManagerPresenter);
            histogramPresenter             = new HistogramPresenter(dataSetManagerPresenter);
            scatterPlotPresenter           = new ScatterPlotPresenter(dataSetManagerPresenter);
            boxWhiskerPlotPresenter        = new BoxWhiskerPlotPresenter(dataSetManagerPresenter);
            sampleSizeEstimationPresenter  = new SampleSizeEstimationPresenter(dataSetManagerPresenter);
            oneWayAnovaPresenter           = new OneWayAnovaPresenter(dataSetManagerPresenter);
            correlationCovariancePresenter = new CorrelationCovariancePresenter(dataSetManagerPresenter);
            runsTestForRandomnessPresenter = new RunsTestForRandomnessPresenter(dataSetManagerPresenter);
            forecastPresenter              = new ForecastPresenter(dataSetManagerPresenter);
            discriminantAnalysisPresenter  = new DiscriminantAnalysisPresenter(dataSetManagerPresenter);
            logisticRegressionPresenter    = new LogisticRegressionPresenter(dataSetManagerPresenter);
            regressionPresenter            = new RegressionPresenter(dataSetManagerPresenter);

            // Add Event Handlers for the click events of the buttons.
            btnDataSetManager.Click           += delegate { dataSetManagerPresenter.openDataSetManager(); };
            btnLag.Click                      += delegate { lagPresenter.openView(); };
            btnDummy.Click                    += delegate { dummyPresenter.openView(); };
            btnOneVariableSummary.Click       += delegate { oneVariableSummaryPresenter.openView(); };
            btnCorrelationAndCovariance.Click += delegate { correlationCovariancePresenter.openView(); };
            btnHistogram.Click                += delegate { histogramPresenter.openView(); };
            btnScatterplot.Click              += delegate { scatterPlotPresenter.openView(); };
            btnBoxWhiskerPlot.Click           += delegate { boxWhiskerPlotPresenter.openView(); };
            btnSampleSizeEstimation.Click     += delegate { sampleSizeEstimationPresenter.openView(); };
            btnAnova.Click                    += delegate { oneWayAnovaPresenter.openView(); };
            btnRunsTestForRandomness.Click    += delegate { runsTestForRandomnessPresenter.openView(); };
            btnForecast.Click                 += delegate { forecastPresenter.openView(); };
            btnLogisticRegression.Click       += delegate { logisticRegressionPresenter.openView(); };
            btnDiscriminantAnalysis.Click     += delegate { discriminantAnalysisPresenter.openView(); };
            btnXRChart.Click                  += delegate { xrChartPresenter.openView(); };
            btnPChart.Click                   += delegate { pChartPresenter.openView(); };
            btnProcessCapability.Click        += delegate { processCapabilityPresenter.openView(); };
            btnTimeSeriesGraph.Click          += delegate { timeSeriesGraphPresenter.openView(); };
            btnSimpleRegression.Click         += delegate { regressionPresenter.openView(); };
        }
Exemplo n.º 2
0
 public void setPresenter(DiscriminantAnalysisPresenter DiscriminantAnalysisPresenter)
 {
     this.presenter = DiscriminantAnalysisPresenter;
     bindModelToView();
     selectDataSet(selectedDataSet());
 }