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); }
private void txtPhone_KeyPress(object sender, KeyPressEventArgs e) { Validation.IsInteger(e); }
private void txtSaleAmount_KeyPress(object sender, KeyPressEventArgs e) { Validation.IsInteger(e); }
private void textBox6_KeyPress(object sender, KeyPressEventArgs e) { Validation.IsInteger(e); }