Пример #1
0
 private void updatePlotStatus()
 {
     this.ttffDisplayToolbarPlotCDFBtn.Enabled  = true;
     this.ttffDisplayToolbarAddCurveBtn.Enabled = false;
     this._CDFPlotWin = null;
     this._curvePlotIndicesList.Clear();
     this._curvePlotTitlesList.Clear();
     this._curvePlotColorsList.Clear();
 }
Пример #2
0
        private void PlotCDFCurvesButton_Click(object sender, EventArgs e)
        {
            this.ttffDisplayToolbarPlotCDFBtn.Enabled  = false;
            this.ttffDisplayToolbarAddCurveBtn.Enabled = true;
            if (this._CDFPlotWin == null)
            {
                this._CDFPlotWin           = new frmCDFPlots();
                this._CDFPlotWin.MdiParent = base.MdiParent;
                this._CDFPlotWin.UpdateStatusToParentWin += new frmCDFPlots.UpdateParentEventHandler(this.updatePlotStatus);
                this._CDFPlotWin.UpdateStatsData         += new frmCDFPlots.UpdateParentEventHandler(this.RefreshCDFPlot);
            }
            Stats  dataClass = this.getPlotData(this.ttffDisplayToolbarCurveTypeComboBox.SelectedIndex);
            string label     = this.getPlotTitle(this.ttffDisplayToolbarCurveTypeComboBox.SelectedIndex);

            if (dataClass != null)
            {
                this._CDFPlotWin.SetPlotData(dataClass, dataClass.Samples, "CDF Plot", label, this._currentCurveColor);
                this._curvePlotIndicesList.Add(this.ttffDisplayToolbarCurveTypeComboBox.SelectedIndex);
                this._curvePlotTitlesList.Add(label);
                this._curvePlotColorsList.Add(this._currentCurveColor);
                this._CDFPlotWin.Show();
                this.ttffDisplayToolbarCurveTitleTxtBox.Text = label;
            }
        }