private void i2ToolStripMenuItem_Click(object sender, EventArgs e) { frmCalibrate CalForm = new frmCalibrate(); CalForm.Show(); CalForm.StartPosition = FormStartPosition.CenterScreen; CalForm.Text = "Calibrate - " + sender.ToString(); }
private void e1ToolStripMenuItem_Click(object sender, EventArgs e) { if (chkE1.Checked == false && chkE2.Checked == false && chkI1.Checked == false && chkI2.Checked == false && chkN1.Checked == false) { frmCalibrate CalForm = new frmCalibrate(); //CalForm.Show(); CalForm.ShowDialog(); CalForm.StartPosition = FormStartPosition.CenterScreen; CalForm.Text = "Calibrate - " + sender.ToString(); CalForm.txtRaw1.Text = "1234"; //if (TimerMain.Enabled == true) { TimerMain.Enabled = false; } } else { MessageBox.Show("Please disable instrument reading."); } }