private void InitializeTermsAndConditions()
        {
            bool agreedToTerms = AppLogic.AppConfigBool("PayPal.Ads.TermsAndConditionsAgreement", ThisCustomer.StoreID, true);
            bool enabledPayPal = AppLogic.AppConfig("PaymentMethods", ThisCustomer.StoreID, true).ContainsIgnoreCase("PayPal");

            pnlDisableConfiguration.Visible = !AllowConfiguration();
            pnlPayPalEnabled.Visible        = enabledPayPal;
            pnlPayPalNotEnabled.Visible     = !enabledPayPal;

            if (!Page.IsPostBack)
            {
                chkTermsAndConditions.Checked = agreedToTerms;
            }
            else
            {
                AtomCartPageDimensions.DataBind();
                AtomEntityPageDimensions.DataBind();
                AtomHomePageDimensions.DataBind();
                AtomProductPageDimensions.DataBind();
                AtomPublisherId.DataBind();
                AtomShowAdsOnCartPage.DataBind();
                AtomShowAdsOnEntityPage.DataBind();
                AtomShowAdsOnHomePage.DataBind();
                AtomShowAdsOnProductPage.DataBind();
            }
        }
        protected void btnSaveConfiguration_Click(object sender, EventArgs e)
        {
            AtomPublisherId.Save();

            if (AllowConfiguration())
            {
                AtomCartPageDimensions.Save();
                AtomEntityPageDimensions.Save();
                AtomHomePageDimensions.Save();
                AtomProductPageDimensions.Save();
                AtomShowAdsOnCartPage.Save();
                AtomShowAdsOnEntityPage.Save();
                AtomShowAdsOnHomePage.Save();
                AtomShowAdsOnProductPage.Save();
            }
        }