Esempio n. 1
0
        }     //end btnsubmit click

        private bool ValidateTextBoxes()
        {
            return(StringValidator.IsNotEmptySpaceOrNull(txtName.Text) &&
                   StringValidator.IsNotEmptySpaceOrNull(txtState.Text) &&
                   IntValidator.IsInteger(txtPop.Text) &&
                   StringValidator.IsDecimal(txtMedHI.Text) &&
                   StringValidator.IsDecimal(txtPercOwn.Text) &&
                   StringValidator.IsDecimal(txtRent.Text) &&
                   IntValidator.IsInteger(txtMaleMedAge.Text) &&
                   IntValidator.IsInteger(txtFemaleMedAge.Text) &&
                   StringValidator.IsDecimal(txtUnemploymentRate.Text) &&
                   StringValidator.IsDecimal(txtBurgRate.Text) &&
                   StringValidator.IsDecimal(txtVehTheftRate.Text));
        }