public frmMVCTestTen(MvcTestMode TestMode)
        {
            InitializeComponent();
            this.Dock = DockStyle.Fill;
            this.Width = Screen.PrimaryScreen.Bounds.Width;
            this.Height = Screen.PrimaryScreen.Bounds.Height;

            testMode = TestMode;
            DataSample = new Classes.MvcDS(GlobalVariables.leftSerialPort);
            AssignCallbackMethods();
            dSet = new MvcDataSet();

            dSetArray[0] = new MvcDataSetTen("LLQC");
            dSetArray[1] = new MvcDataSetTen("LLQE");
            dSetArray[2] = new MvcDataSetTen("LLHC");
            dSetArray[3] = new MvcDataSetTen("LLHE");
            dSetArray[4] = new MvcDataSetTen("RLQC");
            dSetArray[5] = new MvcDataSetTen("RLQE");
            dSetArray[6] = new MvcDataSetTen("RLHC");
            dSetArray[7] = new MvcDataSetTen("RLHE");

            // Set the control style to double buffer.
            //this.SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.UserPaint, true);
            //this.SetStyle(ControlStyles.SupportsTransparentBackColor, false);
            //this.SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
        }
        public frmPowerStepTest(MvcTestMode TestMode)
        {
            InitializeComponent();
            this.Dock = DockStyle.Fill;
            this.Width = Screen.PrimaryScreen.Bounds.Width;
            this.Height = Screen.PrimaryScreen.Bounds.Height;

            DataSample = new Classes.PowerStepTestDS(GlobalVariables.leftSerialPort);
            AssignCallbackMethods();

            DataSample.ResetGraphs(chartPower);
            DataSample.SetReferncePowerCurve(chartPower, numUpDownPower.Value);
            // Set the control style to double buffer.
            //this.SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.UserPaint, true);
            //this.SetStyle(ControlStyles.SupportsTransparentBackColor, false);
            //this.SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
        }
Exemplo n.º 3
0
 private void btnLLHC_MouseUp(object sender, MouseEventArgs e)
 {
     testMode = MvcTestMode.LeftHamsConc;
     lblTestMode.Text = "Left Leg Hams Conc";
 }
Exemplo n.º 4
0
 private void btnRLHE_MouseUp(object sender, MouseEventArgs e)
 {
     testMode = MvcTestMode.RightHamsEcce;
     lblTestMode.Text = "Right Leg Hams Ecce";
 }
Exemplo n.º 5
0
 private void btnRLQC_MouseUp(object sender, MouseEventArgs e)
 {
     testMode = MvcTestMode.RightQuadsConc;
     lblTestMode.Text = "Right Leg Quads Conc";
 }
Exemplo n.º 6
0
 private void btnLLQE_MouseUp(object sender, MouseEventArgs e)
 {
     testMode = MvcTestMode.LeftQuadsEcce;
     lblTestMode.Text = "Left Leg Quads Ecce";
 }