public void Add(Thumbnail thumbnail)
        {
            var thumbnailBox = new ThumbnailBox();

            thumbnailBox.Width  = this.Height;
            thumbnailBox.Height = this.Height - 10;
            this.ThumbnailsBox.Add(thumbnailBox);
            thumbnailBox.Thumbnail = thumbnail;
            this.flowLayoutPanel1.Controls.Add(thumbnailBox);
            validateButtonState();
            thumbnailBox.Selected += thumbnailBox_Select;
        }
Beispiel #2
0
        public void Add(Thumbnail thumbnail, ref HashSet <string> folderset)
        {
            var thumbnailBox = new ThumbnailBox(folderset);

            // thumbnailBox.Width = this.Height;
            // thumbnailBox.Height = this.Height - 10;
            thumbnailBox.Width  = 140;
            thumbnailBox.Height = 100;
            this.ThumbnailsBox.Add(thumbnailBox);
            thumbnailBox.Thumbnail = thumbnail;
            this.flowLayoutPanel1.Controls.Add(thumbnailBox);
            validateButtonState();
            thumbnailBox.Selected += thumbnailBox_Select;
        }
Beispiel #3
0
        private void thumbnailBox_Select(ThumbnailBox thumbnailBox)
        {
            var newIndex = this.ThumbnailsBox.IndexOf(thumbnailBox);

            SelectThumnail(newIndex);
        }