private void newAnalogArduino_Click(object sender, EventArgs e) { /* PID childForm = new PID(); childForm.MdiParent = this; childForm.Text = "Analog Arduino"; //if (childForm.Init() == false) { // return; } childForm.Show(); childForm.WindowState = FormWindowState.Maximized; */ // Create a new instance of the child form. AnalogVizArduino childForm; childForm = new AnalogVizArduino(); childForm.MdiParent = this; if (childForm.Init() == false) { return; } childForm.Show(); childForm.WindowState = FormWindowState.Maximized; }
private void newAnalogArduino_Click(object sender, EventArgs e) { /* * PID childForm = new PID(); * childForm.MdiParent = this; * childForm.Text = "Analog Arduino"; * //if (childForm.Init() == false) * { * // return; * } * childForm.Show(); * childForm.WindowState = FormWindowState.Maximized; */ // Create a new instance of the child form. AnalogVizArduino childForm; childForm = new AnalogVizArduino(); childForm.MdiParent = this; if (childForm.Init() == false) { return; } childForm.Show(); childForm.WindowState = FormWindowState.Maximized; }