private void SelectThumbnail(SelectablePictureBox selected)
 {
     if (Images.IndexOf(selected) != this.ImageList.GetSelectedHistoryIndex())
     {
         DeselectThumbnails();
         selected.SetSelected(true);
         ImageList.SelectHistoryImage(Images.IndexOf(selected));
         SelectedThumbnail();
     }
 }
        public void AddHistoryThumbnail(ImageObject image)
        {
            SelectablePictureBox pictureBox = new SelectablePictureBox(image)
            {
                Width  = this.Width / 10,
                Height = this.Height
            };

            DeselectThumbnails();
            pictureBox.SetSelected(true);
            pictureBox.MouseClick += new MouseEventHandler(HistoryPanel_MouseDown);
            this.Controls.Add(pictureBox);
            Images.Insert(0, pictureBox);

            if (Images.Count > 10)
            {
                SelectablePictureBox thumbnail = Images[Images.Count - 1];
                this.Controls.Remove(thumbnail);
                thumbnail.Dispose();
                Images.RemoveAt(Images.Count - 1);
            }
            ResizeThumbnails();
        }