public InternalsViewerToolWindow() : base(null)
        {
            Caption = "Internals Viewer";

            AllocationWindow = new AllocationWindow();
            Control          = AllocationWindow;

            AllocationWindow.Connect  += AllocationWindow_Connect;
            AllocationWindow.ViewPage += AllocationWindow_ViewPage;
        }
        public void Connect()
        {
            using (var dialog = new ShellConnectionDialog())
            {
                IServerType serverType = new SqlServerType();

                dialog.AddServer(serverType);

                var connectionInfo = new UIConnectionInfo();

                if (dialog.ShowDialogCollectValues(ServiceCache.MainShellWindow, ref connectionInfo) == DialogResult.OK)
                {
                    ConnectionManager.ConnectInternalsViewer(connectionInfo);

                    AllocationWindow.RefreshDatabases();
                }
            }
        }