[mapguide-commits] r6919 - trunk/Tools/Maestro/Maestro.Shared.UI
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Tue Jul 24 05:10:45 PDT 2012
Author: jng
Date: 2012-07-24 05:10:44 -0700 (Tue, 24 Jul 2012)
New Revision: 6919
Modified:
trunk/Tools/Maestro/Maestro.Shared.UI/WorkbenchBase.cs
Log:
#2077: Handle ViewContentActivating, allowing for an already opened resource to be re-activated as the current tab
Modified: trunk/Tools/Maestro/Maestro.Shared.UI/WorkbenchBase.cs
===================================================================
--- trunk/Tools/Maestro/Maestro.Shared.UI/WorkbenchBase.cs 2012-07-24 11:57:13 UTC (rev 6918)
+++ trunk/Tools/Maestro/Maestro.Shared.UI/WorkbenchBase.cs 2012-07-24 12:10:44 UTC (rev 6919)
@@ -56,9 +56,6 @@
this.Icon = _workbenchInitializer.GetIcon();
- //contentPanel = new ZonedContainer(_workbenchInitializer);
- //contentPanel.Dock = DockStyle.Fill;
- //contentPanel.ViewActivated += new ViewContentActivateEventHandler(OnViewActivated);
contentPanel = new DockPanel();
contentPanel.DocumentStyle = DocumentStyle.DockingWindow;
contentPanel.ShowDocumentIcon = true;
@@ -66,7 +63,7 @@
contentPanel.DockLeftPortion = 250;
contentPanel.DockBottomPortion = 150;
contentPanel.DockRightPortion = 200;
-
+
menu = _workbenchInitializer.GetMainMenu(this);
toolStripContainer = new ToolStripContainer();
@@ -278,6 +275,10 @@
content.DockAreas = (DockAreas)(vc.DefaultRegion);
}
vc.SetParentForm(content);
+ vc.ViewContentActivating += (sender, e) =>
+ {
+ content.Activate();
+ };
vc.TitleChanged += (sender, e) =>
{
content.TabText = vc.Title;
More information about the mapguide-commits
mailing list