Exemplo n.º 1
0
 public void RemoveTab(MonoDevelop.Components.DockNotebook.DockNotebook tabControl, int pageNum, bool animate)
 {
     try
     {
         this.LockActiveWindowChangeEvent();
         IDocumentWindow activeWorkbenchWindow = this.ActiveWorkbenchWindow;
         tabControl.RemoveTab(pageNum, animate);
     }
     finally
     {
         this.UnlockActiveWindowChangeEvent();
     }
 }
Exemplo n.º 2
0
        public void PlaceWindow(DockNotebook notebook)
        {
            try {
                IdeApp.Workbench.LockActiveWindowChangeEvent();
                var allocation = Allocation;
                Destroy();

                if (placementDelegate != null)
                {
                    var tab = notebook.CurrentTab;
                    notebook.RemoveTab(tab.Index, true);
                    placementDelegate(notebook, tab, allocation, curX, curY);
                }
                else
                {
                    ((SdiWorkspaceWindow)frame.Content).SelectWindow();
                }
            } finally {
                IdeApp.Workbench.UnlockActiveWindowChangeEvent();
            }
        }