Exemplo n.º 1
0
        private void textBoxImpedance_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (!(Char.IsNumber(e.KeyChar)) && e.KeyChar != (char)8)
            {
                e.Handled = true;
            }

            if (e.KeyChar == (char)Keys.Enter)
            {
                if (textBoxImpedance.Text == "")
                {
                    MessageShow.show("Warn:Please input data!",
                                     "警告:请输入数字!");
                    return;
                }
                uint impedance = Convert.ToUInt32(textBoxImpedance.Text);
                SetPulserTransmitDAQ.DampingValue(SelectAscan.sessionIndex, SelectAscan.port, impedance);
            }
        }
Exemplo n.º 2
0
        private void textBoxImpedance_Leave(object sender, EventArgs e)
        {
            uint impedance = Convert.ToUInt32(textBoxImpedance.Text);

            SetPulserTransmitDAQ.DampingValue(SelectAscan.sessionIndex, SelectAscan.port, impedance);
        }