示例#1
0
        private void textBox1_KeyPress(object sender, KeyPressEventArgs e)
        {
            char       x  = e.KeyChar;
            validation v1 = new validation();

            v1.validatedigitCharacters(x, label27);
        }
        private void textBox2_KeyPress(object sender, KeyPressEventArgs e)
        {
            Char       ch = e.KeyChar;
            validation v1 = new validation();

            v1.validatedigitCharacters(ch, label11);
        }
示例#3
0
        private void quantity_KeyPress(object sender, KeyPressEventArgs e)
        {
            validation v1 = new validation();

            char tt = e.KeyChar;

            v1.validatedigitCharacters(tt, error);
        }
示例#4
0
 private void textBox6_Leave(object sender, EventArgs e)
 {
     if (textBox6.Text != null)
     {
         validation v1 = new validation();
         v1.emailValidation(textBox6.Text, label28);
     }
 }
示例#5
0
 private void emailText_Leave(object sender, EventArgs e)
 {
     if (emailText.Text != null)
     {
         validation v1 = new validation();
         v1.emailValidation(emailText.Text, label30);
     }
 }
示例#6
0
        private void textBox1_TextChanged(object sender, EventArgs e)
        {
            validation v = new validation();

            v.creditCardValidations(textBox1.Text, label6);
        }
示例#7
0
        private void textBox7_Leave(object sender, EventArgs e)
        {
            validation v1 = new validation();

            v1.contactNumberValidation(textBox7.Text, label26);
        }
示例#8
0
        private void numText_Leave(object sender, EventArgs e)
        {
            validation v1 = new validation();

            v1.contactNumberValidation(numText.Text, label16);
        }