Example #1
0
        private void ttfsPlotBtn_Click(object sender, EventArgs e)
        {
            this.ttfsPlotBtn.Enabled = false;
            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 = new Stats();

            for (int i = 0; i < this.dataGridView1.Rows.Count; i++)
            {
                try
                {
                    dataClass.InsertSample(Convert.ToDouble(this.dataGridView1["TTFS", i].Value.ToString()));
                }
                catch
                {
                    this.ttfsPlotBtn.Enabled = true;
                }
            }
            string label = "Time To First Sync";

            if ((dataClass != null) && (dataClass.Samples > 0))
            {
                this._CDFPlotWin.SetPlotData(dataClass, dataClass.Samples, "CDF Plot", label, Color.Blue);
                this._CDFPlotWin.Show();
                this._CDFPlotWin.SetXAxisTitle("Time To First Frame Sync(s)");
            }
        }
Example #2
0
 private void updatePlotStatus()
 {
     this.ttffDisplayToolbarPlotCDFBtn.Enabled = true;
     this.ttffDisplayToolbarAddCurveBtn.Enabled = false;
     this._CDFPlotWin = null;
     this._curvePlotIndicesList.Clear();
     this._curvePlotTitlesList.Clear();
     this._curvePlotColorsList.Clear();
 }
Example #3
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;
     }
 }
Example #4
0
 private void updatePlotStatus()
 {
     this.ttfsPlotBtn.Enabled = true;
     this._CDFPlotWin         = null;
 }
Example #5
0
 private void updatePlotStatus()
 {
     this.ttfsPlotBtn.Enabled = true;
     this._CDFPlotWin = null;
 }
Example #6
0
 private void ttfsPlotBtn_Click(object sender, EventArgs e)
 {
     this.ttfsPlotBtn.Enabled = false;
     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 = new Stats();
     for (int i = 0; i < this.dataGridView1.Rows.Count; i++)
     {
         try
         {
             dataClass.InsertSample(Convert.ToDouble(this.dataGridView1["TTFS", i].Value.ToString()));
         }
         catch
         {
             this.ttfsPlotBtn.Enabled = true;
         }
     }
     string label = "Time To First Sync";
     if ((dataClass != null) && (dataClass.Samples > 0))
     {
         this._CDFPlotWin.SetPlotData(dataClass, dataClass.Samples, "CDF Plot", label, Color.Blue);
         this._CDFPlotWin.Show();
         this._CDFPlotWin.SetXAxisTitle("Time To First Frame Sync(s)");
     }
 }