internal void OnTabbedThumbnailBitmapRequested() { if (TabbedThumbnailBitmapRequested != null) { TabbedThumbnailBitmapRequestedEventArgs eventArgs = null; if (this.WindowHandle != IntPtr.Zero) { eventArgs = new TabbedThumbnailBitmapRequestedEventArgs(this.WindowHandle); } else if (this.WindowsControl != null) { eventArgs = new TabbedThumbnailBitmapRequestedEventArgs(this.WindowsControl); } TabbedThumbnailBitmapRequested(this, eventArgs); } }