[mapguide-commits] r5815 - in trunk/Tools/Maestro: Maestro.Editors/LoadProcedure Maestro.Editors/Properties OSGeo.MapGuide.MaestroAPI/ObjectModels

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Wed May 18 10:58:52 EDT 2011


Author: jng
Date: 2011-05-18 07:58:52 -0700 (Wed, 18 May 2011)
New Revision: 5815

Modified:
   trunk/Tools/Maestro/Maestro.Editors/LoadProcedure/InputFilesCtrl.cs
   trunk/Tools/Maestro/Maestro.Editors/Properties/Resources.Designer.cs
   trunk/Tools/Maestro/Maestro.Editors/Properties/Resources.resx
   trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/ObjectModels/LoadProcedure.cs
Log:
#1695: Fix wrong check when adding a source file to a Load Procedure. Also fix some bad file selection filters.


Modified: trunk/Tools/Maestro/Maestro.Editors/LoadProcedure/InputFilesCtrl.cs
===================================================================
--- trunk/Tools/Maestro/Maestro.Editors/LoadProcedure/InputFilesCtrl.cs	2011-05-18 06:03:51 UTC (rev 5814)
+++ trunk/Tools/Maestro/Maestro.Editors/LoadProcedure/InputFilesCtrl.cs	2011-05-18 14:58:52 UTC (rev 5815)
@@ -67,6 +67,7 @@
                 if (dlg.ShowDialog() == DialogResult.OK)
                 {
                     _lpt.AddFiles(dlg.FileNames);
+                    OnResourceChanged();
                 }
             }
         }
@@ -99,6 +100,7 @@
                 {
                     _lpt.RemoveFile(f);
                 }
+                OnResourceChanged();
             }
         }
     }

Modified: trunk/Tools/Maestro/Maestro.Editors/Properties/Resources.Designer.cs
===================================================================
--- trunk/Tools/Maestro/Maestro.Editors/Properties/Resources.Designer.cs	2011-05-18 06:03:51 UTC (rev 5814)
+++ trunk/Tools/Maestro/Maestro.Editors/Properties/Resources.Designer.cs	2011-05-18 14:58:52 UTC (rev 5815)
@@ -699,7 +699,7 @@
         }
         
         /// <summary>
-        ///   Looks up a localized string similar to Autodesk SDF (*.sdf)|*.*.
+        ///   Looks up a localized string similar to Autodesk SDF (*.sdf)|*.sdf.
         /// </summary>
         internal static string FilterSdf {
             get {
@@ -708,7 +708,7 @@
         }
         
         /// <summary>
-        ///   Looks up a localized string similar to ESRI Shape File (*.shp)|*.*.
+        ///   Looks up a localized string similar to ESRI Shape File (*.shp)|*.shp.
         /// </summary>
         internal static string FilterShp {
             get {

Modified: trunk/Tools/Maestro/Maestro.Editors/Properties/Resources.resx
===================================================================
--- trunk/Tools/Maestro/Maestro.Editors/Properties/Resources.resx	2011-05-18 06:03:51 UTC (rev 5814)
+++ trunk/Tools/Maestro/Maestro.Editors/Properties/Resources.resx	2011-05-18 14:58:52 UTC (rev 5815)
@@ -848,7 +848,7 @@
     <value>Please save this resource first</value>
   </data>
   <data name="FilterShp" xml:space="preserve">
-    <value>ESRI Shape File (*.shp)|*.*</value>
+    <value>ESRI Shape File (*.shp)|*.shp</value>
   </data>
   <data name="QuestionAddItemToFlyout" xml:space="preserve">
     <value>Add this item to the flyout? Clicking "No" will add it before the flyout</value>
@@ -858,7 +858,7 @@
     <value>Line {0}, Column {1}</value>
   </data>
   <data name="FilterSdf" xml:space="preserve">
-    <value>Autodesk SDF (*.sdf)|*.*</value>
+    <value>Autodesk SDF (*.sdf)|*.sdf</value>
   </data>
   <data name="icon_zoom" type="System.Resources.ResXFileRef, System.Windows.Forms">
     <value>..\Resources\icon_zoom.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>

Modified: trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/ObjectModels/LoadProcedure.cs
===================================================================
--- trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/ObjectModels/LoadProcedure.cs	2011-05-18 06:03:51 UTC (rev 5814)
+++ trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/ObjectModels/LoadProcedure.cs	2011-05-18 14:58:52 UTC (rev 5815)
@@ -129,7 +129,7 @@
     {
         public void AddFile(string file)
         {
-            if (this.sourceFileField.Contains(file))
+            if (!this.sourceFileField.Contains(file))
             {
                 this.sourceFileField.Add(file);
             }



More information about the mapguide-commits mailing list