Example #1
0
 public static IButton CreateImageLinkButton(ImageLinkButton button)
 {
     if (button == null)
     {
         throw new ArgumentNullException("button", "The button parameter can not be null");
     }
     return new ImageLinkButtonWrapper(button);
 }
Example #2
0
 public static IButton CreateImageLinkButton(ImageLinkButton button)
 {
     if (button == null)
     {
         throw new ArgumentNullException("button", "The button parameter can not be null");
     }
     return(new ImageLinkButtonWrapper(button));
 }
Example #3
0
 protected override void AttachChildControls()
 {
     this.txtSKU = (TextBox) this.FindControl("txtSKU");
     this.btnSKU = (Button) this.FindControl("btnSKU");
     this.btnClearCart = (ImageLinkButton) this.FindControl("btnClearCart");
     this.shoppingCartProductList = (Common_ShoppingCart_ProductList) this.FindControl("Common_ShoppingCart_ProductList");
     this.shoppingCartGiftList = (Common_ShoppingCart_GiftList) this.FindControl("Common_ShoppingCart_GiftList");
     this.lblTotalPrice = (FormatedMoneyLabel) this.FindControl("lblTotalPrice");
     this.lblAmoutPrice = (FormatedMoneyLabel) this.FindControl("lblAmoutPrice");
     this.litlDiscountPrice = (Literal) this.FindControl("litlDiscountPrice");
     this.hlkDiscountName = (HyperLink) this.FindControl("hlkDiscountName");
     this.btnCheckout = (Button) this.FindControl("btnCheckout");
     this.btnShopping = (Button) this.FindControl("btnShopping");
     this.pnlShopCart = (Panel) this.FindControl("pnlShopCart");
     this.litNoProduct = (Literal) this.FindControl("litNoProduct");
     this.hfdIsLogin = (HiddenField) this.FindControl("hfdIsLogin");
     this.btnSKU.Click += new EventHandler(this.btnSKU_Click);
     this.btnClearCart.Click += new EventHandler(this.btnClearCart_Click);
     this.shoppingCartProductList.ItemCommand += new DataListCommandEventHandler(this.shoppingCartProductList_ItemCommand);
     this.shoppingCartGiftList.ItemCommand += new DataListCommandEventHandler(this.shoppingCartGiftList_ItemCommand);
     this.btnCheckout.Click += new EventHandler(this.btnCheckout_Click);
     this.btnShopping.Click += new EventHandler(this.btnShopping_Click);
     if (!HiContext.Current.SiteSettings.IsOpenSiteSale && !HiContext.Current.SiteSettings.IsDistributorSettings)
     {
         this.btnSKU.Visible = false;
         this.btnCheckout.Visible = false;
         this.btnShopping.Visible = false;
     }
     if (!this.Page.IsPostBack)
     {
         this.BindShoppingCart();
     }
     if (!HiContext.Current.User.IsAnonymous)
     {
         this.hfdIsLogin.Value = "logined";
     }
 }
Example #4
0
 internal ImageLinkButtonWrapper(ImageLinkButton button)
 {
     _button = button;
 }
 internal ImageLinkButtonWrapper(ImageLinkButton button)
 {
     this._button = button;
 }