Example #1
0
        public static DocumentInstance OpenStore(bool openBasicContent = false)
        {
            //select already opened
            var w = FindWindow <StoreDocumentWindow>();

            if (w != null)
            {
                SelectDockWindow(w);
                if (openBasicContent)
                {
                    w.LoadURL(StoreDocumentWindow.homeURLBasicContent);
                }
                return(w.Document);
            }

            var document = new DocumentInstance("", null, "");

            Documents.Add(document);

            var window = new StoreDocumentWindow();

            window.InitDocumentWindow(document, null, false, null);
            if (openBasicContent)
            {
                window.StartURL = StoreDocumentWindow.homeURLBasicContent;
            }

            EditorForm.Instance.WorkspaceController.AddDockWindow(window, false, true);

            return(document);
        }
Example #2
0
        public static DocumentInstance OpenStore()
        {
            //select already opened
            var w = FindWindow <StoreDocumentWindow>();

            if (w != null)
            {
                SelectDockWindow(w);
                return(w.Document);
            }

            var document = new DocumentInstance("", null, "");

            Documents.Add(document);

            var window = new StoreDocumentWindow();

            window.InitDocumentWindow(document, null, false, null);

            EditorForm.Instance.WorkspaceController.AddDockWindow(window, false, true);

            return(document);
        }