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

KryptonPaletteCommon() private method

Initialize a new instance of the KryptonPaletteCommon class.
private KryptonPaletteCommon ( PaletteRedirect redirector, NeedPaintHandler needPaint ) : System
redirector PaletteRedirect Palette redirector for sourcing inherited values.
needPaint NeedPaintHandler Delegate for notifying paint requests.
return System
        internal KryptonPaletteCommon(PaletteRedirect redirector,
                                      NeedPaintHandler needPaint)
        {
            Debug.Assert(redirector != null);

            // Create the common palettes
            _stateCommon = new PaletteTripleRedirect(redirector, PaletteBackStyle.ButtonStandalone, PaletteBorderStyle.ButtonStandalone, PaletteContentStyle.ButtonStandalone, needPaint);
            _stateDisabled = new PaletteTriple(_stateCommon, needPaint);
            _stateOthers = new PaletteTriple(_stateCommon, needPaint);
        }