AjaxControlToolkit.AccordionContentPanel.OnBubbleEvent C# (CSharp) Méthode

OnBubbleEvent() protected méthode

protected OnBubbleEvent ( object source, EventArgs args ) : bool
source object
args System.EventArgs
Résultat 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;
        }