Ejemplo n.º 1
0
        private void btnSaveAddress_Click(object sender, EventArgs e)
        {
            try
            {
                if (string.IsNullOrEmpty(txtAddShortName.Text.Trim()))
                {
                    _isValidate = false;
                    throw new Exception("Bitte eingeben: Name");
                }

                bool isvalidName = dxValidationProviderAddShortName.Validate(txtAddShortName);
                if (!isvalidName)
                {
                    _isValidate = false;
                }
                else
                {
                    _isValidate = true;
                }
                if (_isValidate == true)
                {
                    if (ObjECustomer == null)
                    {
                        ObjECustomer = new ECustomer();
                    }
                    ParseCustomerAddressDetails();
                    ObjBCustomer           = new BCustomer();
                    ObjECustomer.AddressID = ObjBCustomer.SaveCustomerAddressDetails(ObjECustomer);
                    _isValidate            = true;
                }
            }
            catch (Exception ex)
            {
                Utility.ShowError(ex);
            }
        }