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

KryptonPaletteTMS() private method

Initialize a new instance of the KryptonPaletteKCT class.
private KryptonPaletteTMS ( IPalette palette, KryptonColorTable baseKCT, NeedPaintHandler needPaint ) : System
palette IPalette Associated palettte instance.
baseKCT KryptonColorTable Initial base KCT to inherit values from.
needPaint NeedPaintHandler Delegate for notifying paint requests.
return System
        internal KryptonPaletteTMS(IPalette palette,
                                   KryptonColorTable baseKCT,
                                   NeedPaintHandler needPaint)
        {
            Debug.Assert(baseKCT != null);

            // Create actual KCT for storage
            _internalKCT = new KryptonInternalKCT(baseKCT, palette);

            // Create the set of sub objects that expose the palette properties
            _paletteButton = new KryptonPaletteTMSButton(_internalKCT, needPaint);
            _paletteGrip = new KryptonPaletteTMSGrip(_internalKCT, needPaint);
            _paletteMenu = new KryptonPaletteTMSMenu(_internalKCT, needPaint);
            _paletteMenuStrip = new KryptonPaletteTMSMenuStrip(_internalKCT, needPaint);
            _paletteRafting = new KryptonPaletteTMSRafting(_internalKCT, needPaint);
            _paletteSeparator = new KryptonPaletteTMSSeparator(_internalKCT, needPaint);
            _paletteStatusStrip = new KryptonPaletteTMSStatusStrip(_internalKCT, needPaint);
            _paletteToolStrip = new KryptonPaletteTMSToolStrip(_internalKCT, needPaint);
        }