GalleryItem GetFontItemByFont(string fontName, BaseGallery gallery) { foreach (GalleryItemGroup galleryGroup in gallery.Groups) { foreach (GalleryItem item in galleryGroup.Items) { if (item.Caption == fontName) { return(item); } } } return(null); }
GalleryItem GetColorItemByColor(Color color, BaseGallery gallery) { foreach (GalleryItemGroup galleryGroup in gallery.Groups) { foreach (GalleryItem item in galleryGroup.Items) { if (item.Caption == color.Name) { return(item); } } } return(null); }
GalleryItem GetFontItemByFont(string fontName, BaseGallery gallery) { foreach (GalleryItemGroup galleryGroup in gallery.Groups) foreach (GalleryItem item in galleryGroup.Items) if (item.Caption == fontName) return item; return null; }
GalleryItem GetColorItemByColor(Color color, BaseGallery gallery) { foreach (GalleryItemGroup galleryGroup in gallery.Groups) foreach (GalleryItem item in galleryGroup.Items) if (item.Caption == color.Name) return item; return null; }
public DBGallery(BaseGallery gallery) { Gallery = gallery; Gallery.ItemClick += Gallery_ItemClick; Populate(); }