Ejemplo n.º 1
0
        /// <summary>
        /// Creates a new form to display the full-size image corresponding to the thumbnail.
        /// </summary>
        private void Controls_MouseClick(object sender, MouseEventArgs e)
        {
            if (e.Button == MouseButtons.Left)
            {
                thumbnailsSequence.MoveToThumbnail(this);

                //Raise event
                ThumbnailItemClickEventArgs ev = new ThumbnailItemClickEventArgs();
                ev.Index = this.ThumbnailIndex;
                ev.Filename = imageFile.LongFileName;
                OnClickThumbnailItem(this, ev);
            }
        }
Ejemplo n.º 2
0
 private void ThumbnailItem_OnClickThumbnailItem(object sender, ThumbnailItemClickEventArgs e)
 {
     GlobalSetting.CurrentIndex = e.Index;
     NextPic(0);
 }