Exemplo n.º 1
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
            Button      = new KryptonPaletteTMSButton(InternalKCT, needPaint);
            Grip        = new KryptonPaletteTMSGrip(InternalKCT, needPaint);
            Menu        = new KryptonPaletteTMSMenu(InternalKCT, needPaint);
            MenuStrip   = new KryptonPaletteTMSMenuStrip(InternalKCT, needPaint);
            Rafting     = new KryptonPaletteTMSRafting(InternalKCT, needPaint);
            Separator   = new KryptonPaletteTMSSeparator(InternalKCT, needPaint);
            StatusStrip = new KryptonPaletteTMSStatusStrip(InternalKCT, needPaint);
            ToolStrip   = new KryptonPaletteTMSToolStrip(InternalKCT, needPaint);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Initialise a new instance of the KryptonStandardRenderer class.
 /// </summary>
 /// <param name="kct">Source for text colors.</param>
 public KryptonStandardRenderer(KryptonColorTable kct)
     : base(kct)
 {
 }
 /// <summary>
 /// Initialise a new instance of the KryptonProfessionalRenderer class.
 /// </summary>
 /// <param name="kct">Source for text colors.</param>
 public KryptonProfessionalRenderer(KryptonColorTable kct)
     : base(kct)
 {
     Debug.Assert(kct != null);
     KCT = kct;
 }