Пример #1
0
        protected virtual void OnItemCommand(RepeaterCommandEventArgs e)
        {
            RepeaterCommandEventHandler h = (RepeaterCommandEventHandler)Events [ItemCommandEvent];

            if (h != null)
            {
                h(this, e);
            }
        }
Пример #2
0
        /// <devdoc>
        /// <para>A protected method. Raises the <see langword='ItemCommand'/> event.</para>
        /// </devdoc>
        protected virtual void OnItemCommand(RepeaterCommandEventArgs e)
        {
            RepeaterCommandEventHandler onItemCommandHandler = (RepeaterCommandEventHandler)Events[EventItemCommand];

            if (onItemCommandHandler != null)
            {
                onItemCommandHandler(this, e);
            }
        }
        protected virtual void OnItemCommand(RepeaterCommandEventArgs e)
        {
            RepeaterCommandEventHandler handler = (RepeaterCommandEventHandler)base.Events[EventItemCommand];

            if (handler != null)
            {
                handler(this, e);
            }
        }
 protected override void AttachChildControls()
 {
     this.rp_promogift              = (Repeater)this.FindControl("rp_promogift");
     this.pnlPromoGift              = (Panel)this.FindControl("pnlPromoGift");
     this.lit_promonum              = (Literal)this.FindControl("lit_promonum");
     this.lit_promosumnum           = (Literal)this.FindControl("lit_promosumnum");
     this.pnlPromoGift.Visible      = false;
     this.rp_promogift.ItemCommand += new RepeaterCommandEventHandler(this.rp_promogift_ItemCommand);
 }
        protected virtual void OnItemCommand(RepeaterCommandEventArgs rce)
        {
            RepeaterCommandEventHandler repeaterCommandEventDelegate =
                (RepeaterCommandEventHandler)Events[ItemCommandKey];

            if (repeaterCommandEventDelegate != null)
            {
                repeaterCommandEventDelegate(this, rce);
            }
        }