Example #1
0
 private bool IsDataPresent()
 {
     if (ValidatorClass.IsPresent(txtName.Text) && ValidatorClass.IsPresent(txtAddress.Text) && ValidatorClass.IsPresent(txtCity.Text) && ValidatorClass.IsPresent(txtState.Text) && ValidatorClass.IsNumeric(txtZipCode.Text) && ValidatorClass.IsNumeric(txtPhone.Text) && ValidatorClass.IsPresent(txtEmail.Text))
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Example #2
0
        private bool IsDataValid()
        {
            if (ValidatorClass.IsPresent(txtCustomerID.Text) && ValidatorClass.IsNumeric(txtCustomerID.Text))

            {
                return(true);
            }
            else
            {
                return(false);
            }
        }