Inheritance: System.Windows.Forms.Form, IDisposable
        public void Dispose(bool disposing)
        {
            if (disposing)
            {
                // Dispose managed resources
                if (tabbedThumbnailPreview != null)
                {
                    tabbedThumbnailPreview.Dispose();
                }
                tabbedThumbnailPreview = null;

                if (ThumbnailToolbarProxyWindow != null)
                {
                    ThumbnailToolbarProxyWindow.Dispose();
                }
                ThumbnailToolbarProxyWindow = null;

                if (TabbedThumbnailProxyWindow != null)
                {
                    TabbedThumbnailProxyWindow.Dispose();
                }
                TabbedThumbnailProxyWindow = null;

                // Don't dispose the thumbnail buttons
                // as they might be used in another window.
                // Setting them to null will indicate we don't need use anymore.
                thumbnailButtons = null;
            }
        }
示例#2
0
        internal TaskbarWindow(TabbedThumbnail preview)
        {
            if (preview == null)
                throw new ArgumentException("preview");

            // Create our proxy window
            TabbedThumbnailProxyWindow = new TabbedThumbnailProxyWindow(preview);

            // set our current state
            EnableThumbnailToolbars = false;
            EnableTabbedThumbnails = true;

            //
            UserWindowHandle = preview.WindowHandle;
            WindowsControl = preview.WindowsControl;
            TabbedThumbnail = preview;
        }
示例#3
0
        public TaskbarWindow(TabbedThumbnail preview)
        {
            if (preview == null) { throw new ArgumentNullException("preview"); }

            // Create our proxy window
            // Bug: This is only called in this constructor.  Which will cause the property
            // to fail if TaskbarWindow is initialized from a different constructor.
            TabbedThumbnailProxyWindow = new TabbedThumbnailProxyWindow(preview);

            // set our current state
            EnableThumbnailToolbars = false;
            EnableTabbedThumbnails = true;

            // copy values
            UserWindowHandle = preview.WindowHandle;
            WindowsControl = preview.WindowsControl;
            TabbedThumbnail = preview;
        }
        internal TaskbarWindow(TabbedThumbnail preview)
        {
            if (preview == null)
            {
                throw new ArgumentException("preview");
            }

            // Create our proxy window
            TabbedThumbnailProxyWindow = new TabbedThumbnailProxyWindow(preview);

            // set our current state
            EnableThumbnailToolbars = false;
            EnableTabbedThumbnails  = true;

            //
            UserWindowHandle = preview.WindowHandle;
            WindowsControl   = preview.WindowsControl;
            TabbedThumbnail  = preview;
        }
示例#5
0
//        internal TaskbarWindow(System.Windows.UIElement windowsControl, params ThumbnailToolBarButton[] buttons)
//        {
//            if (windowsControl == null)
//            {
//                throw new ArgumentNullException("windowsControl");
//            }
//
//            if (buttons == null || buttons.Length == 0)
//            {
//                throw new ArgumentException(LocalizedMessages.TaskbarWindowEmptyButtonArray, "buttons");
//            }
//
//            // Create our proxy window
//            ThumbnailToolbarProxyWindow = new ThumbnailToolbarProxyWindow(windowsControl, buttons);
//            ThumbnailToolbarProxyWindow.TaskbarWindow = this;
//
//            // Set our current state
//            EnableThumbnailToolbars = true;
//            EnableTabbedThumbnails = false;
//
//            this.ThumbnailButtons = buttons;
//            UserWindowHandle = IntPtr.Zero;
//            WindowsControl = windowsControl;
//        }

        internal TaskbarWindow(TabbedThumbnail preview)
        {
            if (preview == null)
            {
                throw new ArgumentNullException("preview");
            }

            // Create our proxy window
            // Bug: This is only called in this constructor.  Which will cause the property
            // to fail if TaskbarWindow is initialized from a different constructor.
            TabbedThumbnailProxyWindow = new TabbedThumbnailProxyWindow(preview);

            // set our current state
            EnableThumbnailToolbars = false;
            EnableTabbedThumbnails  = true;

            // copy values
            UserWindowHandle = preview.WindowHandle;
            //WindowsControl = preview.WindowsControl;
            TabbedThumbnail = preview;
        }