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

KryptonPaletteImagesGalleryButtons() public method

Initialize a new instance of the KryptonPaletteImagesGalleryButtons class.
public KryptonPaletteImagesGalleryButtons ( PaletteRedirect redirector, NeedPaintHandler needPaint ) : System
redirector PaletteRedirect Palette redirector for sourcing inherited values.
needPaint NeedPaintHandler Delegate for notifying paint requests.
return System
        public KryptonPaletteImagesGalleryButtons(PaletteRedirect redirector,
                                                  NeedPaintHandler needPaint)
        {
            // Store the provided paint notification delegate
            NeedPaint = needPaint;

            // Create the storage
            _up = new KryptonPaletteImagesGalleryButton(PaletteRibbonGalleryButton.Up, redirector, needPaint);
            _down = new KryptonPaletteImagesGalleryButton(PaletteRibbonGalleryButton.Down, redirector, needPaint);
            _dropDown = new KryptonPaletteImagesGalleryButton(PaletteRibbonGalleryButton.DropDown, redirector, needPaint);
        }