Example #1
0
        private void textBoxPrf_KeyPress(object sender, KeyPressEventArgs e)
        {
            uint prf;

            if (!(Char.IsNumber(e.KeyChar)) && e.KeyChar != (char)8)
            {
                e.Handled = true;
            }

            if (e.KeyChar == (char)Keys.Enter)
            {
                if (textBoxPrf.Text == "")
                {
                    MessageShow.show("Warn:Please input data!",
                                     "警告:请输入数字!");
                    return;
                }

                prf = Convert.ToUInt32(textBoxPrf.Text);
                SetPulserTransmitDAQ.Prf(SelectAscan.sessionIndex, SelectAscan.port, prf);
            }
        }
Example #2
0
        private void textBoxPrf_Leave(object sender, EventArgs e)
        {
            uint prf = Convert.ToUInt32(textBoxPrf.Text);

            SetPulserTransmitDAQ.Prf(SelectAscan.sessionIndex, SelectAscan.port, prf);
        }