Beispiel #1
0
        private void amount_KeyPress(object sender, KeyPressEventArgs e)
        {
            TextBox txtBox = (TextBox)sender;

            //BathClass.only_allow_int(e);
            BathClass.only_allow_float(txtBox, e);
        }
Beispiel #2
0
 //只允许输入小数
 private void cost_KeyPress(object sender, KeyPressEventArgs e)
 {
     BathClass.only_allow_float(cost, e);
 }
        private void numberText_KeyPress(object sender, KeyPressEventArgs e)
        {
            TextBox txtBox = (TextBox)sender;

            BathClass.only_allow_float(txtBox, e);
        }
Beispiel #4
0
 private void discount_KeyPress(object sender, KeyPressEventArgs e)
 {
     BathClass.only_allow_float(discount, e);
 }
Beispiel #5
0
 private void re_number_KeyPress(object sender, KeyPressEventArgs e)
 {
     BathClass.only_allow_float(re_number, e);
 }
Beispiel #6
0
 private void onRatio_KeyPress(object sender, KeyPressEventArgs e)
 {
     BathClass.only_allow_float(onRatio, e);
 }
Beispiel #7
0
 private void salary_KeyPress(object sender, KeyPressEventArgs e)
 {
     BathClass.only_allow_float(salary, e);
 }
Beispiel #8
0
 private void price_KeyPress(object sender, KeyPressEventArgs e)
 {
     BathClass.only_allow_float(price, e);
 }