private void btnCalibrate_Click(object sender, EventArgs e) { sendKeystrokesEnabled = false; Button btn = (Button)sender; int i = Convert.ToInt32(btn.Name.Substring(btn.Name.Length - 1, 1)); CalibrationForm cf = new CalibrationForm(); Handbell newHB = cf.StartCalibration(_mcm, i); if (newHB != null) { _hb[i] = newHB; } sendKeystrokesEnabled = true; }
private void btnCalibrate_Click(object sender, EventArgs e) { ConfigForm.sendKeystrokesEnabled = false; Button btn = (Button)sender; int i = Convert.ToInt32(btn.Name.Substring(btn.Name.Length - 1, 1)); CalibrationForm cf = new CalibrationForm(); Handbell newHB = cf.StartCalibration(_mcm, i); //Apply Calibration if (newHB != null) { _hb[i] = newHB; tabHandbellCalibration.Controls["txtBSP" + i].Text = Settings.BSP[i].ToString(); tabHandbellCalibration.Controls["txtHSP" + i].Text = Settings.HSP[i].ToString(); } ConfigForm.sendKeystrokesEnabled = true; }