Exemplo n.º 1
0
        public bool CheckDataInput()
        {
            DataVerification dataCheck = new DataVerification();
            bool             result    = false;

            var checkLicenseNum  = dataCheck.IsEmpty(LicenseNumTextBox, LicenseNumTextBox.Text, ErrorProvider);
            var checkFirstName   = dataCheck.IsEmpty(FirstNameTextBox, FirstNameTextBox.Text, ErrorProvider);
            var checkLastName    = dataCheck.IsEmpty(LastNameTextBox, LastNameTextBox.Text, ErrorProvider);
            var checkMiddleName  = dataCheck.IsEmpty(MiddleTextBox, MiddleTextBox.Text, ErrorProvider);
            var checkAddress     = dataCheck.IsEmpty(AddressTextBox, AddressTextBox.Text, ErrorProvider);
            var checkCity        = dataCheck.IsEmpty(CityTextBox, CityTextBox.Text, ErrorProvider);
            var checkState       = dataCheck.IsEmpty(StateTextBox, StateTextBox.Text, ErrorProvider);
            var checkZip         = dataCheck.IsEmpty(ZipCodeTextBox, ZipCodeTextBox.Text, ErrorProvider);
            var checkPhone       = dataCheck.IsEmpty(PhoneNumTextBox, PhoneNumTextBox.Text, ErrorProvider);
            var checkSecondPhone = dataCheck.IsEmpty(SecondaryPhoneTextBox, SecondaryPhoneTextBox.Text, ErrorProvider);

            if (checkLicenseNum || checkFirstName || checkLastName || checkMiddleName || checkAddress ||
                checkCity || checkState || checkZip || checkPhone || checkSecondPhone)
            {
                result = true;
            }
            else
            {
                ErrorProvider.Clear();
                result = false;
            }
            return(result);
        }
Exemplo n.º 2
0
        public bool CheckDataInput()
        {
            DataVerification dataCheck = new DataVerification();
            bool result = false;

            var checkLicenseNum = dataCheck.IsEmpty(LicenseNumTextBox, LicenseNumTextBox.Text, ErrorProvider);
            var checkFirstName = dataCheck.IsEmpty(FirstNameTextBox, FirstNameTextBox.Text, ErrorProvider);
            var checkLastName = dataCheck.IsEmpty(LastNameTextBox, LastNameTextBox.Text, ErrorProvider);
            var checkMiddleName = dataCheck.IsEmpty(MiddleTextBox, MiddleTextBox.Text, ErrorProvider);
            var checkAddress = dataCheck.IsEmpty(AddressTextBox, AddressTextBox.Text, ErrorProvider);
            var checkCity = dataCheck.IsEmpty(CityTextBox, CityTextBox.Text, ErrorProvider);
            var checkState = dataCheck.IsEmpty(StateTextBox, StateTextBox.Text, ErrorProvider);
            var checkZip = dataCheck.IsEmpty(ZipCodeTextBox, ZipCodeTextBox.Text, ErrorProvider);
            var checkPhone = dataCheck.IsEmpty(PhoneNumTextBox, PhoneNumTextBox.Text, ErrorProvider);
            var checkSecondPhone = dataCheck.IsEmpty(SecondaryPhoneTextBox, SecondaryPhoneTextBox.Text, ErrorProvider);

            if (checkLicenseNum || checkFirstName || checkLastName || checkMiddleName || checkAddress ||
                checkCity || checkState || checkZip || checkPhone || checkSecondPhone)
            {
                result = true;
            }
            else
            {
                ErrorProvider.Clear();
                result = false;
            }
            return result;
        }
Exemplo n.º 3
0
        public bool CheckDataInput()
        {
            DataVerification dataCheck         = new DataVerification();
            string           primeCategory     = GetSelectedPrimeCategory();
            string           secondaryCategory = GetSelectedSecCategory();
            bool             result            = false;

            bool checkCustomerNum = dataCheck.IsEmpty(CustomerIDTextBox, CustomerIDTextBox.Text, ErrorProvider);
            bool checkProductId   = dataCheck.IsEmpty(ProductIDTextBox, ProductIDTextBox.Text, ErrorProvider);
            bool checkProductDesc = dataCheck.IsEmpty(ProductDescTextBox, ProductDescTextBox.Text, ErrorProvider);
            bool checkPrice       = dataCheck.IsEmpty(PriceTextBox, PriceTextBox.Text, ErrorProvider);
            bool checkSerialNum   = dataCheck.IsEmpty(SerialNumberTextBox, SerialNumberTextBox.Text, ErrorProvider);
            bool checkPrimeCat    = dataCheck.IsEmpty(PrimeCatGridView, primeCategory, ErrorProvider);
            bool checkSecCat      = dataCheck.IsEmpty(SecCatGridView, secondaryCategory, ErrorProvider);

            if (checkCustomerNum || checkProductId || checkProductDesc || checkPrice ||
                checkSerialNum || checkPrimeCat || checkSecCat)
            {
                result = true;
            }
            else
            {
                ErrorProvider.Clear();
                return(false);
            }
            return(result);
        }
Exemplo n.º 4
0
        public bool CheckDataInput()
        {
            DataVerification dataCheck = new DataVerification();
            bool             result    = false;

            bool checkCustomerNum = dataCheck.IsEmpty(CustomerIDTextBox, CustomerIDTextBox.Text, ErrorProvider);
            bool checkProductDesc = dataCheck.IsEmpty(ProductDescTextBox, ProductDescTextBox.Text, ErrorProvider);
            bool checkPrice       = dataCheck.IsEmpty(PrincipalTextBox, PrincipalTextBox.Text, ErrorProvider);

            if (checkCustomerNum || checkProductDesc || checkPrice)
            {
                result = true;
            }
            else
            {
                ErrorProvider.Clear();
                result = false;
            }
            return(result);
        }
Exemplo n.º 5
0
        public bool CheckDataInput()
        {
            DataVerification dataCheck = new DataVerification();
            bool result = false;

            bool checkCustomerNum = dataCheck.IsEmpty(CustomerIDTextBox, CustomerIDTextBox.Text, ErrorProvider);
            bool checkProductDesc = dataCheck.IsEmpty(ProductDescTextBox, ProductDescTextBox.Text, ErrorProvider);
            bool checkPrice = dataCheck.IsEmpty(PrincipalTextBox, PrincipalTextBox.Text, ErrorProvider);

            if (checkCustomerNum || checkProductDesc || checkPrice)
            {
                result = true;
            }
            else
            {
                ErrorProvider.Clear();
                result = false;
            }
            return result;
        }
Exemplo n.º 6
0
        public bool CheckDataInput()
        {
            DataVerification dataCheck = new DataVerification();
            string primeCategory = GetSelectedPrimeCategory();
            string secondaryCategory = GetSelectedSecCategory();
            bool result = false;

            bool checkProductId = dataCheck.IsEmpty(ProductIDTextBox, ProductIDTextBox.Text, ErrorProvider);
            bool checkProductDesc = dataCheck.IsEmpty(ProductDescTextBox, ProductDescTextBox.Text, ErrorProvider);
            bool checkPrice = dataCheck.IsEmpty(PriceTextBox, PriceTextBox.Text, ErrorProvider);
            bool checkSerialNum = dataCheck.IsEmpty(SerialNumTextBox, SerialNumTextBox.Text, ErrorProvider);
            bool checkPrimeCat = dataCheck.IsEmpty(PrimeCatGridView, primeCategory, ErrorProvider);
            bool checkSecCat = dataCheck.IsEmpty(SecCatGridView, secondaryCategory, ErrorProvider);

            if (checkProductId || checkProductDesc || checkPrice || checkSerialNum || checkPrimeCat
                || checkSecCat)
            {
                result = true;
            }
            else
            {
                ErrorProvider.Clear();
                result = false;
            }
            return result;
        }