Ejemplo n.º 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);
        }
Ejemplo n.º 2
0
 //只允许输入小数
 private void cost_KeyPress(object sender, KeyPressEventArgs e)
 {
     BathClass.only_allow_float(cost, e);
 }
Ejemplo n.º 3
0
        private void numberText_KeyPress(object sender, KeyPressEventArgs e)
        {
            TextBox txtBox = (TextBox)sender;

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