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); } }
private bool IsDataValid() { if (ValidatorClass.IsPresent(txtCustomerID.Text) && ValidatorClass.IsNumeric(txtCustomerID.Text)) { return(true); } else { return(false); } }