コード例 #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);
        }
コード例 #2
0
 private void txtPhone_KeyPress(object sender, KeyPressEventArgs e)
 {
     Validation.IsInteger(e);
 }
コード例 #3
0
ファイル: New_Client.cs プロジェクト: xjmaine/Real-Estate
 private void txtSaleAmount_KeyPress(object sender, KeyPressEventArgs e)
 {
     Validation.IsInteger(e);
 }
コード例 #4
0
 private void textBox6_KeyPress(object sender, KeyPressEventArgs e)
 {
     Validation.IsInteger(e);
 }