Ejemplo n.º 1
0
 public void Load(IList<ThumbnailData> images)
 {
     this.flowLayoutPanel1.Controls.Clear();
     foreach (ThumbnailData data in images)
     {
         Thumbnail thumbnail = new Thumbnail();
         thumbnail.Initialize(data.Name, data.Image, this.thumbnailCoef);
         thumbnail.ThumbnailClicked += new CbGeneric<string>(thumbnail_ThumbnailClicked);
         this.flowLayoutPanel1.Controls.Add(thumbnail);
     }
 }
Ejemplo n.º 2
0
 public void AppendThumbnail(ThumbnailData data)
 {
     Thumbnail thumbnail = new Thumbnail();
     thumbnail.Initialize(data.Name, data.Image, this.thumbnailCoef);
     thumbnail.ThumbnailClicked += new CbGeneric<string>(thumbnail_ThumbnailClicked);
     this.flowLayoutPanel1.Controls.Add(thumbnail);
 }