private void CleanupThumbnail() { if (_thumbnailForm != null) { _thumbnailForm.Close(); _thumbnailForm = null; } }
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); } }