Inheritance: KryptonColorTable
コード例 #1
0
        /// <summary>
        /// Initialize a new instance of the KryptonPaletteKCTBase class.
        /// </summary>
        /// <param name="internalKCT">Reference to inherited values.</param>
        /// <param name="needPaint">Delegate for notifying paint requests.</param>
        internal KryptonPaletteTMSBase(KryptonInternalKCT internalKCT,
                                       NeedPaintHandler needPaint)
        {
            Debug.Assert(internalKCT != null);

            _internalKCT = internalKCT;

            // Store the provided paint notification delegate
            NeedPaint = needPaint;
        }
コード例 #2
0
        /// <summary>
        /// Initialize a new instance of the KryptonPaletteKCT class.
        /// </summary>
        /// <param name="palette">Associated palettte instance.</param>
        /// <param name="baseKCT">Initial base KCT to inherit values from.</param>
        /// <param name="needPaint">Delegate for notifying paint requests.</param>
        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);
        }
コード例 #3
0
 /// <summary>
 /// Initialize a new instance of the KryptonPaletteKCTMenuStrip class.
 /// </summary>
 /// <param name="internalKCT">Reference to inherited values.</param>
 /// <param name="needPaint">Delegate for notifying paint requests.</param>
 internal KryptonPaletteTMSMenuStrip(KryptonInternalKCT internalKCT,
                                     NeedPaintHandler needPaint)
     : base(internalKCT, needPaint)
 {
 }
コード例 #4
0
 /// <summary>
 /// Initialize a new instance of the KryptonPaletteKCTButton class.
 /// </summary>
 /// <param name="internalKCT">Reference to inherited values.</param>
 /// <param name="needPaint">Delegate for notifying paint requests.</param>
 internal KryptonPaletteTMSButton(KryptonInternalKCT internalKCT,
                                  NeedPaintHandler needPaint)
     : base(internalKCT, needPaint)
 {
 }
コード例 #5
0
 /// <summary>
 /// Initialize a new instance of the KryptonPaletteKCTRafting class.
 /// </summary>
 /// <param name="internalKCT">Reference to inherited values.</param>
 /// <param name="needPaint">Delegate for notifying paint requests.</param>
 internal KryptonPaletteTMSRafting(KryptonInternalKCT internalKCT,
                                   NeedPaintHandler needPaint)
     : base(internalKCT, needPaint)
 {
 }
コード例 #6
0
 /// <summary>
 /// Initialize a new instance of the KryptonPaletteKCTSeparator class.
 /// </summary>
 /// <param name="internalKCT">Reference to inherited values.</param>
 /// <param name="needPaint">Delegate for notifying paint requests.</param>
 internal KryptonPaletteTMSSeparator(KryptonInternalKCT internalKCT,
                                     NeedPaintHandler needPaint)
     : base(internalKCT, needPaint)
 {
 }