AjaxControlToolkit.AccordionContentPanel.OnBubbleEvent C# (CSharp) Method

OnBubbleEvent() protected method

protected OnBubbleEvent ( object source, EventArgs args ) : bool
source object
args System.EventArgs
return bool
        protected override bool OnBubbleEvent(object source, EventArgs args)
        {
            var commandArgs = args as CommandEventArgs;
            if(commandArgs != null) {
                var accordionArgs = new AccordionCommandEventArgs(this, commandArgs.CommandName, commandArgs.CommandArgument);
                RaiseBubbleEvent(this, accordionArgs);
                return true;
            }
            return false;
        }