Пример #1
0
        private bool ValidateFields()
        {
            bool fielddataOk = true;

            fielddataOk &= stbCustomerName.Validate();
            fielddataOk &= stbCustomerAddress.Validate();
            fielddataOk &= stbCustomerZipCode.Validate();
            fielddataOk &= stbCustomerPhone.Validate();
            fielddataOk &= stbCustomerEmail.Validate();
            fielddataOk &= dafCustomerBirthday.Validate();
            fielddataOk &= GeneralValidation.ZipCodeValidation(stbCustomerZipCode, lblCustomerCityCountry);
            return(fielddataOk);
        }
Пример #2
0
        private void stbLotZipCode_TextChanged(object sender, EventArgs e)
        {
            if (GeneralValidation.ZipCodeValidation(stbLotZipCode, lblLotCityCountry))
            {
                cboNeighborhood.Enabled = true;

                int zipCode = Convert.ToInt32(stbLotZipCode.Text);

                var hoods = NeighborhoodController.Instance.GetHoods(zipCode);
                cboNeighborhood.Items.Clear();
                if (hoods != null)
                {
                    foreach (var hood in hoods)
                    {
                        cboNeighborhood.Items.Add(hood);
                    }
                }
            }
            else
            {
                cboNeighborhood.Enabled = false;
            }
        }
Пример #3
0
 private void stbSellerZipCode_TextChanged(object sender, EventArgs e)
 {
     GeneralValidation.ZipCodeValidation(stbSellerZipCode, lblSellerCityCountry);
 }