Пример #1
0
        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;
        }
Пример #2
0
        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;
        }
Пример #3
0
        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;
        }