Example #1
0
        /// <summary>
        /// Raises the <see cref="Wilco.Web.UI.WebControls.WebParts.WebPartManager.WebPartPanelRemoved"/> event.
        /// </summary>
        /// <param name="e"></param>
        protected virtual void OnWebPartPanelRemoved(WebPartPanelEventArgs e)
        {
            WebPartPanelEventHandler handler = this.Events[WebPartManager.EventWebPartPanelRemoved] as WebPartPanelEventHandler;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Example #2
0
        /// <summary>
        /// Raises the <see cref="Wilco.Web.UI.WebControls.WebParts.WebPartPanel.FrameStateChanged"/> event.
        /// </summary>
        /// <param name="e"></param>
        protected virtual void OnFrameStateChanged(WebPartPanelEventArgs e)
        {
            WebPartPanelEventHandler handler = this.Events[WebPartPanel.EventFrameStateChanged] as WebPartPanelEventHandler;

            if (handler != null)
            {
                handler(this, e);
            }

            // Bubble the event.
            this.RaiseBubbleEvent(this, e);
        }