[mapguide-commits] r8716 - in trunk/Tools/Maestro: Maestro.Base Maestro.Base/Services/DragDropHandlers Maestro.Base/Templates Maestro.Base/UI Properties

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Thu Jul 23 09:44:29 PDT 2015


Author: jng
Date: 2015-07-23 09:44:29 -0700 (Thu, 23 Jul 2015)
New Revision: 8716

Modified:
   trunk/Tools/Maestro/Maestro.Base/Services/DragDropHandlers/ShpFileHandler.cs
   trunk/Tools/Maestro/Maestro.Base/Templates/ItemTemplate.cs
   trunk/Tools/Maestro/Maestro.Base/UI/ProfilingDialog.cs
   trunk/Tools/Maestro/Maestro.Base/Workbench.cs
   trunk/Tools/Maestro/Properties/GlobalAssemblyInfo.cs
Log:
#2565: More RES warning fixes

Modified: trunk/Tools/Maestro/Maestro.Base/Services/DragDropHandlers/ShpFileHandler.cs
===================================================================
--- trunk/Tools/Maestro/Maestro.Base/Services/DragDropHandlers/ShpFileHandler.cs	2015-07-23 15:48:44 UTC (rev 8715)
+++ trunk/Tools/Maestro/Maestro.Base/Services/DragDropHandlers/ShpFileHandler.cs	2015-07-23 16:44:29 UTC (rev 8716)
@@ -60,8 +60,7 @@
                 conn.ResourceService.SaveResource(fs);
 
                 //As we all know, the term shape file is deceptive...
-                string[] files = new string[]
-                {
+                string[] files = {
                     file,
                     file.Substring(0, file.LastIndexOf(".")) + ".shx", //NOXLATE
                     file.Substring(0, file.LastIndexOf(".")) + ".dbf", //NOXLATE

Modified: trunk/Tools/Maestro/Maestro.Base/Templates/ItemTemplate.cs
===================================================================
--- trunk/Tools/Maestro/Maestro.Base/Templates/ItemTemplate.cs	2015-07-23 15:48:44 UTC (rev 8715)
+++ trunk/Tools/Maestro/Maestro.Base/Templates/ItemTemplate.cs	2015-07-23 16:44:29 UTC (rev 8716)
@@ -75,7 +75,7 @@
         /// <param name="startFolder"></param>
         /// <param name="conn">The server connection</param>
         /// <returns>a new resource, null if the user cancelled during this process</returns>
-        public abstract IResource CreateItem(string startFolder, IServerConnection conn);
+        public abstract IResource CreateItem(string startPoint, IServerConnection conn);
 
         /// <summary>
         /// Compares this template against the specified template

Modified: trunk/Tools/Maestro/Maestro.Base/UI/ProfilingDialog.cs
===================================================================
--- trunk/Tools/Maestro/Maestro.Base/UI/ProfilingDialog.cs	2015-07-23 15:48:44 UTC (rev 8715)
+++ trunk/Tools/Maestro/Maestro.Base/UI/ProfilingDialog.cs	2015-07-23 16:44:29 UTC (rev 8716)
@@ -209,9 +209,9 @@
                                         mdf.CoordinateSystem = @"LOCAL_CS[""*XY-M*"", LOCAL_DATUM[""*X-Y*"", 10000], UNIT[""Meter"", 1], AXIS[""X"", EAST], AXIS[""Y"", NORTH]]"; //NOXLATE
 
                                     double llx = double.Parse(lst.SpatialContext[0].Extent.LowerLeftCoordinate.X, System.Globalization.NumberStyles.Float, System.Globalization.CultureInfo.InvariantCulture);
-                                    double lly = double.Parse(lst.SpatialContext[0].Extent.LowerLeftCoordinate.Y, System.Globalization.NumberStyles.Float, System.Globalization.CultureInfo.InvariantCulture); ;
-                                    double urx = double.Parse(lst.SpatialContext[0].Extent.UpperRightCoordinate.X, System.Globalization.NumberStyles.Float, System.Globalization.CultureInfo.InvariantCulture); ;
-                                    double ury = double.Parse(lst.SpatialContext[0].Extent.UpperRightCoordinate.Y, System.Globalization.NumberStyles.Float, System.Globalization.CultureInfo.InvariantCulture); ;
+                                    double lly = double.Parse(lst.SpatialContext[0].Extent.LowerLeftCoordinate.Y, System.Globalization.NumberStyles.Float, System.Globalization.CultureInfo.InvariantCulture);
+                                    double urx = double.Parse(lst.SpatialContext[0].Extent.UpperRightCoordinate.X, System.Globalization.NumberStyles.Float, System.Globalization.CultureInfo.InvariantCulture);
+                                    double ury = double.Parse(lst.SpatialContext[0].Extent.UpperRightCoordinate.Y, System.Globalization.NumberStyles.Float, System.Globalization.CultureInfo.InvariantCulture);
 
                                     m_tempmap.DataExtent = ObjectFactory.CreateEnvelope(llx, lly, urx, ury);
                                 }

Modified: trunk/Tools/Maestro/Maestro.Base/Workbench.cs
===================================================================
--- trunk/Tools/Maestro/Maestro.Base/Workbench.cs	2015-07-23 15:48:44 UTC (rev 8715)
+++ trunk/Tools/Maestro/Maestro.Base/Workbench.cs	2015-07-23 16:44:29 UTC (rev 8716)
@@ -30,7 +30,7 @@
     /// <summary>
     /// The top level application window
     /// </summary>
-    public partial class Workbench : WorkbenchBase
+    public class Workbench : WorkbenchBase
     {
         private static Workbench instance;
 

Modified: trunk/Tools/Maestro/Properties/GlobalAssemblyInfo.cs
===================================================================
--- trunk/Tools/Maestro/Properties/GlobalAssemblyInfo.cs	2015-07-23 15:48:44 UTC (rev 8715)
+++ trunk/Tools/Maestro/Properties/GlobalAssemblyInfo.cs	2015-07-23 16:44:29 UTC (rev 8716)
@@ -42,4 +42,6 @@
 [assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Redundancies in Code", "RECS0145:Removes 'private' modifiers that are not required", Justification = "The author likes to be explicit with accessibility modifiers")]
 [assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Redundancies in Code", "RECS0129:Removes 'internal' modifiers that are not required", Justification = "The author likes to be explicit with accessibility modifiers")]
 [assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Language", "CSE0003:Use expression-bodied members", Justification = "The author prefers debuggability over succintness")]
-[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Redundancies in Symbol Declarations", "RECS0007:The default underlying type of enums is int, so defining it explicitly is redundant.", Justification = "The author prefers to be explicit about underlying enum types")]
\ No newline at end of file
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Redundancies in Symbol Declarations", "RECS0007:The default underlying type of enums is int, so defining it explicitly is redundant.", Justification = "The author prefers to be explicit about underlying enum types")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Redundancies in Symbol Declarations", "RECS0072", Justification = "The author prefers explicit context for non-field member access")]
+[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Redundancies in Symbol Declarations", "IDE0003", Justification = "The author prefers explicit context for non-field member access")]
\ No newline at end of file



More information about the mapguide-commits mailing list