//Form Reset Methods - Called everytime the form is shown
        private void ResetData()
        {
            DataSample = new Classes.StaticStrengthTestDS(GlobalVariables.leftSerialPort);
            DataSample.IsTestDataAvailible = false;
            ThreadCallbackProcessFeedbackError = DataSample.ProcessErrorSession;

            if (GlobalVariables.StaticStrengthPB != null)
            {
                lblLeftLegPreviousBest.Text = Math.Round(GlobalVariables.StaticStrengthPB[0], 1).ToString();
                lblRightLegPreviousBest.Text = Math.Round(GlobalVariables.StaticStrengthPB[1], 1).ToString();
            }

            lblMaxTorqueConcLeft.Text = "0";
            gaugeLeft.CircularScales[1].Pointers[0].Value = 0;
            gaugeLeft.CircularScales[0].Pointers[0].Value = GlobalVariables.StaticStrengthPB[0];

            //DataSample.ResetChart(chart_LeftLeg);

            lblMaxTorqueConcRight.Text = "0";
            //DataSample.ResetChart(chart_RightLeg);
            gaugeRight.CircularScales[1].Pointers[0].Value = 0;
            gaugeRight.CircularScales[0].Pointers[0].Value = GlobalVariables.StaticStrengthPB[1];

            EnableButtons();
        }
        private void frmDropTest_Load(object sender, EventArgs e)
        {
            logger.Info("Initiating Drop Test.");

            frmPulseCalibrationDialog ObjFrmPulseCalibration = new frmPulseCalibrationDialog();
            ObjFrmPulseCalibration.ShowDialog();

            ChartTorque.ResetData();
            SetupGraphs();

            DataSample = new Classes.StaticStrengthTestDS(GlobalVariables.leftSerialPort);
            DataSample.CapturePowerFlag = true;
            ThreadCallbackProcessFeedbackError = DataSample.ProcessErrorSession;
            isNewSession = true;
        }
 //Button Extend Time
 private void btnExtendTime_MouseUp(object sender, MouseEventArgs e)
 {
     DataSample = new Classes.StaticStrengthTestDS(GlobalVariables.leftSerialPort);
     torqueArray = new List<double>();
     powerStepTestDataSet = new BasicProgramDataSet();
 }