예제 #1
0
 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);
 }
예제 #2
0
 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);
 }
예제 #3
0
 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;
 }
예제 #4
0
 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;
 }
예제 #5
0
 public DBGallery(BaseGallery gallery)
 {
     Gallery            = gallery;
     Gallery.ItemClick += Gallery_ItemClick;
     Populate();
 }
예제 #6
0
 public DBGallery(BaseGallery gallery)
 {
     Gallery = gallery;
     Gallery.ItemClick += Gallery_ItemClick;
     Populate();
 }