ComponentFactory.Krypton.Docking.KryptonDockableNavigator.OnShowContextMenu C# (CSharp) Method

OnShowContextMenu() private method

private OnShowContextMenu ( object sender, ShowContextMenuArgs e ) : void
sender object
e ComponentFactory.Krypton.Navigator.ShowContextMenuArgs
return void
        private void OnShowContextMenu(object sender, ShowContextMenuArgs e)
        {
            // Make sure we have a menu for displaying
            if (e.KryptonContextMenu == null)
                e.KryptonContextMenu = new KryptonContextMenu();

            // Use event to allow customization of the context menu
            CancelDropDownEventArgs args = new CancelDropDownEventArgs(e.KryptonContextMenu, e.Item);
            args.Cancel = e.Cancel;
            OnPageDropDownClicked(args);
            e.Cancel = args.Cancel;
        }