Beispiel #1
0
        private string Edit()
        {
            string errors = "";

            if (!Validation.IsInteger(txtPartID.Text))
            {
                errors += "Part ID needs to be an integer\r\n";
                if (errors.Length == 0)
                {
                    txtPartID.Focus();
                }
            }
            return(errors);
        }
Beispiel #2
0
 private void txtPhone_KeyPress(object sender, KeyPressEventArgs e)
 {
     Validation.IsInteger(e);
 }
Beispiel #3
0
 private void txtSaleAmount_KeyPress(object sender, KeyPressEventArgs e)
 {
     Validation.IsInteger(e);
 }
Beispiel #4
0
 private void textBox6_KeyPress(object sender, KeyPressEventArgs e)
 {
     Validation.IsInteger(e);
 }