/// <summary> /// Initialize a new instance of the GalleryImages class. /// </summary> /// <param name="needPaint">Delegate for notifying paint requests.</param> public GalleryImages(NeedPaintHandler needPaint) { // Store the provided paint notification delegate NeedPaint = needPaint; // Create the storage Up = new GalleryButtonImages(needPaint); Down = new GalleryButtonImages(needPaint); DropDown = new GalleryButtonImages(needPaint); }
/// <summary> /// Initialize a new instance of the GalleryImages class. /// </summary> /// <param name="needPaint">Delegate for notifying paint requests.</param> public GalleryImages(NeedPaintHandler needPaint) { // Store the provided paint notification delegate NeedPaint = needPaint; // Create the storage _up = new GalleryButtonImages(needPaint); _down = new GalleryButtonImages(needPaint); _dropDown = new GalleryButtonImages(needPaint); }