[mapguide-commits] r5283 - in sandbox/maestro-3.0:
Maestro.Base/Commands/Test Maestro.Base/Editor
Maestro.Editors/Common
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Wed Oct 13 07:54:38 EDT 2010
Author: jng
Date: 2010-10-13 04:54:38 -0700 (Wed, 13 Oct 2010)
New Revision: 5283
Modified:
sandbox/maestro-3.0/Maestro.Base/Commands/Test/OpenResourceCommand.cs
sandbox/maestro-3.0/Maestro.Base/Editor/ResourceEditorService.cs
sandbox/maestro-3.0/Maestro.Editors/Common/ResourcePicker.cs
Log:
3.0 sandbox changes:
- More fixups on the ResourcePicker. Remove one of the public ctors which may cause confusion to people (including myself)
Modified: sandbox/maestro-3.0/Maestro.Base/Commands/Test/OpenResourceCommand.cs
===================================================================
--- sandbox/maestro-3.0/Maestro.Base/Commands/Test/OpenResourceCommand.cs 2010-10-13 08:42:52 UTC (rev 5282)
+++ sandbox/maestro-3.0/Maestro.Base/Commands/Test/OpenResourceCommand.cs 2010-10-13 11:54:38 UTC (rev 5283)
@@ -35,7 +35,7 @@
var mgr = ServiceRegistry.GetService<ServerConnectionManager>();
var conn = mgr.GetConnection(exp.ConnectionName);
- var picker = new ResourcePicker(conn.ResourceService);
+ var picker = new ResourcePicker(conn.ResourceService, ResourcePickerMode.OpenResource);
if (picker.ShowDialog(wb) == System.Windows.Forms.DialogResult.OK)
{
MessageService.ShowMessage(picker.ResourceID);
Modified: sandbox/maestro-3.0/Maestro.Base/Editor/ResourceEditorService.cs
===================================================================
--- sandbox/maestro-3.0/Maestro.Base/Editor/ResourceEditorService.cs 2010-10-13 08:42:52 UTC (rev 5282)
+++ sandbox/maestro-3.0/Maestro.Base/Editor/ResourceEditorService.cs 2010-10-13 11:54:38 UTC (rev 5283)
@@ -119,7 +119,7 @@
public string SelectAnyResource()
{
- var picker = new ResourcePicker(_conn.ResourceService);
+ var picker = new ResourcePicker(_conn.ResourceService, ResourcePickerMode.OpenResource);
if (picker.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
return picker.ResourceID;
Modified: sandbox/maestro-3.0/Maestro.Editors/Common/ResourcePicker.cs
===================================================================
--- sandbox/maestro-3.0/Maestro.Editors/Common/ResourcePicker.cs 2010-10-13 08:42:52 UTC (rev 5282)
+++ sandbox/maestro-3.0/Maestro.Editors/Common/ResourcePicker.cs 2010-10-13 11:54:38 UTC (rev 5283)
@@ -74,10 +74,6 @@
private bool _resourceMode = false;
- public ResourcePicker(IResourceService resSvc)
- : this(resSvc, ResourcePickerMode.OpenResource)
- { }
-
/// <summary>
/// Constructs a new instance. Use this overload to select any resource type. If only
/// folder selection is desired, set <see cref="SelectFoldersOnly"/> to true before
@@ -140,7 +136,8 @@
/// <summary>
/// Gets or sets the resource filter. If a filter value is specified, browsing
- /// is locked to that particular resource type, otherwise al
+ /// is locked to that particular resource type, otherwise all resource type can be
+ /// selected
/// </summary>
public ResourceTypes Filter
{
More information about the mapguide-commits
mailing list