示例#1
0
        private void tboxSymbolRate_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (e.KeyChar == '\b')
            {
                return;
            }

            ChanGenTool.InputLimit(sender as TextBox, e, ChanGenTool.InputMod.UFloat);

            if (e.KeyChar == '\r')
            {
                waveCon.SetRate(sender as TextBox);
            }
        }
示例#2
0
        private void tboxFrequency_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (e.KeyChar == '\b')
            {
                return;
            }

            ChanGenTool.InputLimit(sender as TextBox, e, ChanGenTool.InputMod.UFloat);

            if (e.KeyChar == '\r')
            {
                cboxFrequencyUnit.Focus();
            }
        }
示例#3
0
 private void txtGeneAOA_KeyPress(object sender, KeyPressEventArgs e)
 {
     ChanGenTool.InputLimit(sender as TextBox, e, ChanGenTool.InputMod.UInt);
 }
示例#4
0
 private void txtInputUFloat_KeyPress(object sender, KeyPressEventArgs e)
 {
     ChanGenTool.InputLimit(sender as TextBox, e, ChanGenTool.InputMod.UFloat);
 }