/// <summary> /// Initialize a new instance of the KryptonPaletteImagesGalleryButtons class. /// </summary> /// <param name="redirector">Palette redirector for sourcing inherited values.</param> /// <param name="needPaint">Delegate for notifying paint requests.</param> 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); }
/// <summary> /// Initialize a new instance of the KryptonPaletteImagesGalleryButtons class. /// </summary> /// <param name="redirector">Palette redirector for sourcing inherited values.</param> /// <param name="needPaint">Delegate for notifying paint requests.</param> 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); }