コード例 #1
0
        // key down event handling
        private void Window_KeyDown(object sender, KeyEventArgs e)
        {
            try
            {
                // accept calibration point
                if (e.Key == Key.Space)
                {
                    ETDevice.iV_AcceptCalibrationPoint();
                }

                // end calibration / validation
                if (e.Key == Key.Escape)
                {
                    ETDevice.iV_AbortCalibration();
                    Hide();
                }
            }
            catch (System.Exception exc)
            {
            }
        }