Exemplo n.º 1
0
        /// <summary>
        /// "AutoZero" button clicked.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnAutoZero_Click(object sender, EventArgs e)
        {
            _sendCommand = SendCommand.AutoZero;

            using (OutSelectForm autoZeroForm = new OutSelectForm(true))
            {
                if (DialogResult.OK == autoZeroForm.ShowDialog())
                {
                    int rc = NativeMethods.LJV7IF_AutoZero(_currentDeviceId, autoZeroForm.OnOff, autoZeroForm.Out);
                    AddLogResult(rc, Resources.SID_AUTO_ZERO);
                }
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// "Reset" button clicked.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnReset_Click(object sender, EventArgs e)
        {
            _sendCommand = SendCommand.Reset;

            using (OutSelectForm resetForm = new OutSelectForm(false))
            {
                if (DialogResult.OK == resetForm.ShowDialog())
                {
                    int rc = NativeMethods.LJV7IF_Reset(_currentDeviceId, resetForm.Out);
                    AddLogResult(rc, Resources.SID_RESET);
                }
            }
        }