[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mapguide-commits
Subject:    [mapguide-commits] r7425 - trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/Resource
From:       svn_mapguide () osgeo ! org
Date:       2013-03-28 14:45:26
Message-ID: 20130328144526.98B743905FE () trac ! osgeo ! org
[Download RAW message or body]

Author: jng
Date: 2013-03-28 07:45:26 -0700 (Thu, 28 Mar 2013)
New Revision: 7425

Modified:
   trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/Resource/ResourceIdentifier.cs
Log:
Special ResourceTypes enum parsing exception for Runtime Maps.

Modified: trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/Resource/ResourceIdentifier.cs
 ===================================================================
--- trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/Resource/ResourceIdentifier.cs	2013-03-28 \
                14:42:03 UTC (rev 7424)
+++ trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/Resource/ResourceIdentifier.cs	2013-03-28 \
14:45:26 UTC (rev 7425) @@ -387,7 +387,11 @@
         /// <returns></returns>
         public static ResourceTypes GetResourceType(string identifier)
         {
-            return (ResourceTypes)Enum.Parse(typeof(ResourceTypes), \
GetExtension(identifier)); +            var ext = GetExtension(identifier);
+            if (ext == "Map") //NOXLATE
+                return ResourceTypes.RuntimeMap;
+            else
+                return (ResourceTypes)Enum.Parse(typeof(ResourceTypes), ext);
         }
 
         /// <summary>

_______________________________________________
mapguide-commits mailing list
mapguide-commits@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-commits


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic