Esempio n. 1
0
        public void ShowView(IViewContent content, bool switchToOpenedView)
        {
            WorkbenchSingleton.AssertMainThread();
            if (content == null)
            {
                throw new ArgumentNullException("content");
            }
            if (ViewContentCollection.Contains(content))
            {
                throw new ArgumentException("ViewContent was already shown");
            }
            System.Diagnostics.Debug.Assert(WorkbenchLayout != null);

            LoadViewContentMemento(content);

            WorkbenchLayout.ShowView(content, switchToOpenedView);
        }
Esempio n. 2
0
        public void ShowPad(PadDescriptor content)
        {
            WorkbenchSingleton.AssertMainThread();
            if (content == null)
            {
                throw new ArgumentNullException("content");
            }
            if (padDescriptorCollection.Contains(content))
            {
                throw new ArgumentException("Pad is already loaded");
            }

            padDescriptorCollection.Add(content);

            if (WorkbenchLayout != null)
            {
                WorkbenchLayout.ShowPad(content);
            }
        }