ComponentFactory.Krypton.Ribbon.KryptonRibbonGroup.OnDialogBoxLauncherClick C# (CSharp) Method

OnDialogBoxLauncherClick() protected method

Raises the DialogBoxLauncherClick event.
protected OnDialogBoxLauncherClick ( EventArgs e ) : void
e System.EventArgs An EventArgs containing the event data.
return void
        protected internal virtual void OnDialogBoxLauncherClick(EventArgs e)
        {
            // Perform processing that is common to any action that would dismiss
            // any popup controls such as the showing minimized group popup
            if (Ribbon!= null)
                Ribbon.ActionOccured();

            if (DialogBoxLauncherClick != null)
                DialogBoxLauncherClick(this, e);
        }

Usage Example

 private void OnClick(object sender, MouseEventArgs e)
 {
     // We do not operate the dialog launcher at design time
     if (!_ribbon.InDesignMode)
     {
         // Fire the group defined event that indicates dialog box launcher button pressed
         _ribbonGroup.OnDialogBoxLauncherClick(EventArgs.Empty);
     }
 }