Example #1
0
 /// <summary>
 /// Initialize a new instance of the KryptonPaletteRibbonGroupNormalTitle class.
 /// </summary>
 /// <param name="redirect">Redirector to inherit values from.</param>
 /// <param name="needPaint">Delegate for notifying paint requests.</param>
 public KryptonPaletteRibbonGroupNormalTitle(PaletteRedirect redirect,
                                             NeedPaintHandler needPaint)
 {
     // Create the storage objects
     _stateInherit         = new PaletteRibbonDoubleInheritRedirect(redirect, PaletteRibbonBackStyle.RibbonGroupNormalTitle, PaletteRibbonTextStyle.RibbonGroupNormalTitle);
     _stateCommon          = new PaletteRibbonDouble(_stateInherit, _stateInherit, needPaint);
     _stateNormal          = new PaletteRibbonDouble(_stateCommon, _stateCommon, needPaint);
     _stateTracking        = new PaletteRibbonDouble(_stateCommon, _stateCommon, needPaint);
     _stateContextNormal   = new PaletteRibbonDouble(_stateCommon, _stateCommon, needPaint);
     _stateContextTracking = new PaletteRibbonDouble(_stateCommon, _stateCommon, needPaint);
 }
 /// <summary>
 /// Initialize a new instance of the KryptonPaletteRibbonTab class.
 /// </summary>
 /// <param name="redirect">Redirector to inherit values from.</param>
 /// <param name="needPaint">Delegate for notifying paint requests.</param>
 public KryptonPaletteRibbonTab(PaletteRedirect redirect,
                                NeedPaintHandler needPaint)
 {
     // Create the storage objects
     _stateInherit                = new PaletteRibbonDoubleInheritRedirect(redirect, PaletteRibbonBackStyle.RibbonTab, PaletteRibbonTextStyle.RibbonTab);
     _stateCommon                 = new PaletteRibbonDouble(_stateInherit, _stateInherit, needPaint);
     _stateNormal                 = new PaletteRibbonDouble(_stateCommon, _stateCommon, needPaint);
     _stateTracking               = new PaletteRibbonDouble(_stateCommon, _stateCommon, needPaint);
     _stateCheckedNormal          = new PaletteRibbonDouble(_stateCommon, _stateCommon, needPaint);
     _stateCheckedTracking        = new PaletteRibbonDouble(_stateCommon, _stateCommon, needPaint);
     _stateContextTracking        = new PaletteRibbonDouble(_stateCommon, _stateCommon, needPaint);
     _stateContextCheckedNormal   = new PaletteRibbonDouble(_stateCommon, _stateCommon, needPaint);
     _stateContextCheckedTracking = new PaletteRibbonDouble(_stateCommon, _stateCommon, needPaint);
     _overrideFocus               = new PaletteRibbonDouble(_stateInherit, _stateInherit, needPaint);
 }