public void BumperPneumaticChosen() { twoChoices = false; grpChooseDriver.Hide(); tabsMeta.Visible = true; tabsMeta.TabPages.Clear(); tabsMeta.TabPages.Add(metaJointFriction); tabsMeta.TabPages.Add(metaPneumatic); rbPWM.Hide(); chkBoxDriveWheel.Hide(); btnSave.Show(); grpDriveOptions.Location = new System.Drawing.Point(10, 10); tabsMeta.Location = new System.Drawing.Point(10, 95); btnSave.Location = new System.Drawing.Point(9, 190); ClientSize = new System.Drawing.Size(340, 225); rbCAN.Hide(); rbPWM.Hide(); RelaytxtPort.Hide(); Solenoid1txtPort.Show(); Solenoid2txtPort.Show(); CANtxtPort1.Hide(); CANtxtPort2.Hide(); PWM1txtPort.Hide(); PWM2txtPort.Hide(); lblPort.Text = "Solenoid Port"; }
public void WormScrewChosen() { twoChoices = false; Solenoid1txtPort.Hide(); Solenoid2txtPort.Hide(); RelaytxtPort.Hide(); if (rbPWM.Checked) { lblPort.Text = "PWM Port"; CANtxtPort1.Hide(); CANtxtPort2.Hide(); PWM1txtPort.Show(); PWM2txtPort.Hide(); } else { CANtxtPort1.Show(); CANtxtPort2.Hide(); PWM1txtPort.Hide(); PWM2txtPort.Hide(); lblPort.Text = "CAN Port"; } grpChooseDriver.Hide(); tabsMeta.TabPages.Clear(); tabsMeta.Visible = true; tabsMeta.TabPages.Add(metaJointFriction); rbPWM.Show(); rbCAN.Show(); chkBoxDriveWheel.Hide(); btnSave.Show(); grpDriveOptions.Location = new System.Drawing.Point(10, 10); tabsMeta.Location = new System.Drawing.Point(10, 95); btnSave.Location = new System.Drawing.Point(9, 190); ClientSize = new System.Drawing.Size(340, 225); }
public void DualMotorChosen() { twoChoices = true; Solenoid1txtPort.Hide(); Solenoid2txtPort.Hide(); RelaytxtPort.Hide(); if (rbPWM.Checked) { lblPort.Text = "PWM Port"; CANtxtPort1.Hide(); CANtxtPort2.Hide(); PWM1txtPort.Show(); PWM2txtPort.Show(); } else { CANtxtPort1.Show(); CANtxtPort2.Show(); PWM1txtPort.Hide(); PWM2txtPort.Hide(); lblPort.Text = "CAN Port"; } grpChooseDriver.Hide(); tabsMeta.TabPages.Clear(); tabsMeta.TabPages.Add(metaJointFriction); tabsMeta.TabPages.Add(metaWheel); tabsMeta.TabPages.Add(metaGearing); chkBoxDriveWheel.Show(); btnSave.Show(); rbCAN.Show(); rbPWM.Show(); if (joint.Wheel != WheelType.NotAWheel) { cmbFrictionLevel.Show(); } else { cmbFrictionLevel.Hide(); } grpDriveOptions.Location = new System.Drawing.Point(10, 10); tabsMeta.Location = new System.Drawing.Point(10, 95); btnSave.Location = new System.Drawing.Point(9, 190); ClientSize = new System.Drawing.Size(340, 225); }
public void ElevatorChosen() { twoChoices = false; Solenoid1txtPort.Hide(); Solenoid2txtPort.Hide(); RelaytxtPort.Hide(); if (rbPWM.Checked) { lblPort.Text = "PWM Port"; CANtxtPort1.Hide(); CANtxtPort2.Hide(); PWM1txtPort.Show(); PWM2txtPort.Hide(); } else { CANtxtPort1.Show(); CANtxtPort2.Hide(); PWM1txtPort.Hide(); PWM2txtPort.Hide(); lblPort.Text = "CAN Port"; } lblBrakePort.Enabled = false; rbCAN.Show(); chkBoxDriveWheel.Hide(); rbPWM.Show(); brakePortA.Enabled = chkBoxHasBrake.Checked; brakePortB.Enabled = chkBoxHasBrake.Checked; tabsMeta.TabPages.Clear(); tabsMeta.Visible = true; tabsMeta.TabPages.Add(metaJointFriction); chkBoxHasBrake.Show(); tabsMeta.TabPages.Add(metaElevatorBrake); tabsMeta.TabPages.Add(metaElevatorStages); tabsMeta.TabPages.Add(metaGearing); btnSave.Show(); grpDriveOptions.Location = new System.Drawing.Point(10, 10); tabsMeta.Location = new System.Drawing.Point(10, 95); btnSave.Location = new System.Drawing.Point(9, 190); ClientSize = new System.Drawing.Size(340, 225); }