ComponentFactory.Krypton.Toolkit.KryptonPaletteContextMenu.KryptonPaletteContextMenu C# (CSharp) Method

KryptonPaletteContextMenu() private method

Initialize a new instance of the KryptonPaletteContextMenu class.
private KryptonPaletteContextMenu ( PaletteRedirect redirect, NeedPaintHandler needPaint ) : System
redirect PaletteRedirect Redirector to inherit values from.
needPaint NeedPaintHandler Delegate for notifying paint requests.
return System
        internal KryptonPaletteContextMenu(PaletteRedirect redirect,
                                           NeedPaintHandler needPaint)
        {
            // Create the storage objects
            _stateCommon = new PaletteContextMenuRedirect(redirect, needPaint);
            _stateNormal = new PaletteContextMenuItemState(_stateCommon);
            _stateDisabled = new PaletteContextMenuItemState(_stateCommon);
            _stateHighlight = new PaletteContextMenuItemStateHighlight(_stateCommon);
            _stateChecked = new PaletteContextMenuItemStateChecked(_stateCommon);
        }