コード例 #1
0
ファイル: CartDetail.ascx.cs プロジェクト: helder1978/Store
        protected void Page_Load(object sender, System.EventArgs e)
        {
            if (storeInfo == null)
            {
                StoreController storeController = new StoreController();
                storeInfo = storeController.GetStoreInfo(PortalId);
                if (storeInfo.CurrencySymbol != string.Empty)
                {
                    LocalFormat.CurrencySymbol = storeInfo.CurrencySymbol;
                }
            }

            moduleSettings = new ModuleSettings(parentControl.ModuleId, parentControl.TabId);
            cartNav = new CartNavigation(Request.QueryString);

            //try
            //{

                updateCartGrid();
            //}
            //catch(Exception ex)
            //{
            //	Exceptions.ProcessModuleLoadException(this, ex);
            //}
        }
コード例 #2
0
ファイル: MiniCart.ascx.cs プロジェクト: helder1978/Store
        protected void Page_Load(object sender, System.EventArgs e)
        {
            try
            {
                if (storeInfo == null)
                {
                    StoreController storeController = new StoreController();
                    storeInfo = storeController.GetStoreInfo(PortalId);
                    if (storeInfo.CurrencySymbol != string.Empty)
                    {
                        LocalFormat.CurrencySymbol = storeInfo.CurrencySymbol;
                    }

                    if (storeInfo.PortalTemplates)
                    {
                        CssTools.AddCss(this.Page, PortalSettings.HomeDirectory + "Store", PortalId);
                    }
                    else
                    {
                        CssTools.AddCss(this.Page, this.TemplateSourceDirectory, PortalId);
                    }
                }

                moduleSettings = new ModuleSettings(ModuleId, TabId);
                cartNav = new CartNavigation(Request.QueryString);
            }
            catch (Exception ex)
            {
                string ErrorSettings = Localization.GetString("ErrorSettings", this.LocalResourceFile);
                Exceptions.ProcessModuleLoadException(ErrorSettings, this, ex, true);
            }

            try
            {
                updateCartGrid();
            }
            catch(Exception ex)
            {
                Exceptions.ProcessModuleLoadException(this, ex);
            }
        }