Ejemplo n.º 1
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 ();
            }
        }
Ejemplo 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 ();
			}
		}