protected void chxSameBillingAddress_CheckedChanged(object sender, EventArgs e)
 {
     if (chxSameBillingAddress.Checked)
     {
         AddressEdit_Billing1.CurrentAddress = AddressEdit_Shipping1.GetCloningAddress();
         AddressEdit_Billing1.Bind();
     }
     else
     {
         AddressEdit_Billing1.Clear();
     }
 }
        protected override void LoadForm()
        {
            hccUserProfile userProfile = hccUserProfile.GetById(this.PrimaryKeyIndex);

            //load address
            CreditCardEdit1.CurrentUserProfileID = this.PrimaryKeyIndex;

            if (userProfile != null && userProfile.BillingAddressID.HasValue && userProfile.BillingAddressID.Value > 0)
            {
                AddressEdit_Billing1.PrimaryKeyIndex = userProfile.BillingAddressID.Value;
                AddressEdit_Billing1.Bind();
                chkUpdateCard.Enabled = true;
            }

            // load CardInfo
            CreditCardEdit1.CurrentUserProfileID = this.PrimaryKeyIndex;
            CreditCardEdit1.Bind();
        }