Пример #1
0
        protected IWindowFrame ShowWindow(string windowType, string windowTitle, object docItem, IWindowPane innerPane)
        {
            var windowFrame = shellUiSvc.FindDocumentWindow(windowType, docItem);

            if (windowFrame == null)
            {
                windowFrame = shellUiSvc.CreateDocumentWindow(windowType, docItem, windowTitle, innerPane);
            }
            windowFrame.Show();
            return(windowFrame);
        }