Esempio n. 1
0
 private void CleanupThumbnail()
 {
     if (_thumbnailForm != null) {
         _thumbnailForm.Close();
         _thumbnailForm = null;
     }
 }
Esempio n. 2
0
 private void ShowThumbnailOnEnter(object sender, EventArgs e)
 {
     ToolStripMenuItem captureWindowItem = sender as ToolStripMenuItem;
     if (captureWindowItem != null) {
         WindowDetails window = captureWindowItem.Tag as WindowDetails;
         if (_thumbnailForm == null) {
             _thumbnailForm = new ThumbnailForm();
         }
         _thumbnailForm.ShowThumbnail(window, captureWindowItem.GetCurrentParent().TopLevelControl);
     }
 }