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

PaletteRibbonBack() public method

Initialize a new instance of the PaletteRibbonBack class.
public PaletteRibbonBack ( IPaletteRibbonBack inheritBack, NeedPaintHandler needPaint ) : System
inheritBack IPaletteRibbonBack Source for inheriting background values.
needPaint NeedPaintHandler Delegate for notifying changes in value.
return System
        public PaletteRibbonBack(IPaletteRibbonBack inheritBack,
                                 NeedPaintHandler needPaint)
        {
            Debug.Assert(inheritBack != null);

            // Remember inheritance
            _inheritBack = inheritBack;

            // Store the provided paint notification delegate
            NeedPaint = needPaint;

            // Define default values
            _backColor1 = Color.Empty;
            _backColor2 = Color.Empty;
            _backColor3 = Color.Empty;
            _backColor4 = Color.Empty;
            _backColor5 = Color.Empty;
        }