private void Main_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar == Convert.ToChar("q")) { this.Close(); } if (e.KeyChar == Convert.ToChar("i")) { IntegratedForm integratedForm = new IntegratedForm(); integratedForm.Show(); } }
private void button1_Click(object sender, EventArgs e) { if (this.LrfCheckBox.Checked == true) { LidarForm lidarForm = new LidarForm(); lidarForm.Show(); } if (this.MvCheckBox.Checked == true) { VisionForm visionForm = new VisionForm(); visionForm.Show(); } if (this.DimagerCheckBox.Checked == true) { DimagerForm dImagerForm = new DimagerForm(); dImagerForm.Show(); } if (this.IntegratedCheckBox.Checked == true) { IntegratedForm integratedForm = new IntegratedForm(); integratedForm.Show(); } if (this.BodyCheckBox.Checked == true) { BodyForm bodyForm = new BodyForm(); bodyForm.Show(); } if (this.NetworkCameraCheckBox.Checked == true) { NetworkCamera networkCamera = new NetworkCamera(); networkCamera.Show(); } if (this.SteeringCheckBox.Checked == true) { SteeringForm steeringForm = new SteeringForm(); steeringForm.Show(); } if (this.PanasonicLidarCheckBox.Checked == true) { PanasonicLidarForm panasonicLidarForm = new PanasonicLidarForm(); panasonicLidarForm.Show(); } }