[mapguide-commits] r5315 - in sandbox/maestro-3.0/Maestro.Base: Properties UI

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Thu Oct 21 07:13:17 EDT 2010


Author: jng
Date: 2010-10-21 04:13:17 -0700 (Thu, 21 Oct 2010)
New Revision: 5315

Modified:
   sandbox/maestro-3.0/Maestro.Base/Properties/Resources.Designer.cs
   sandbox/maestro-3.0/Maestro.Base/Properties/Resources.resx
   sandbox/maestro-3.0/Maestro.Base/UI/NewResourceDialog.cs
Log:
Fix #1483: Change "New Item" to "New Resource" to match the New Resource Dialog. Fix New Resource Dialog to invalidate the current template selection when changing categories

Modified: sandbox/maestro-3.0/Maestro.Base/Properties/Resources.Designer.cs
===================================================================
--- sandbox/maestro-3.0/Maestro.Base/Properties/Resources.Designer.cs	2010-10-21 10:10:48 UTC (rev 5314)
+++ sandbox/maestro-3.0/Maestro.Base/Properties/Resources.Designer.cs	2010-10-21 11:13:17 UTC (rev 5315)
@@ -720,7 +720,7 @@
         }
         
         /// <summary>
-        ///   Looks up a localized string similar to New Item.
+        ///   Looks up a localized string similar to New Resource.
         /// </summary>
         internal static string Menu_File_NewResource {
             get {

Modified: sandbox/maestro-3.0/Maestro.Base/Properties/Resources.resx
===================================================================
--- sandbox/maestro-3.0/Maestro.Base/Properties/Resources.resx	2010-10-21 10:10:48 UTC (rev 5314)
+++ sandbox/maestro-3.0/Maestro.Base/Properties/Resources.resx	2010-10-21 11:13:17 UTC (rev 5315)
@@ -242,7 +242,7 @@
     <value>..\Resources\navigation-180.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
   </data>
   <data name="Menu_File_NewResource" xml:space="preserve">
-    <value>New Item</value>
+    <value>New Resource</value>
   </data>
   <data name="Browser_Complete" xml:space="preserve">
     <value>Done</value>

Modified: sandbox/maestro-3.0/Maestro.Base/UI/NewResourceDialog.cs
===================================================================
--- sandbox/maestro-3.0/Maestro.Base/UI/NewResourceDialog.cs	2010-10-21 10:10:48 UTC (rev 5314)
+++ sandbox/maestro-3.0/Maestro.Base/UI/NewResourceDialog.cs	2010-10-21 11:13:17 UTC (rev 5315)
@@ -68,6 +68,9 @@
             {
                 string cat = lstCategories.SelectedItem.ToString();
                 LoadTemplates(_nits.GetItemTemplates(cat, _siteVersion));
+
+                txtDescription.Text = string.Empty;
+                btnOK.Enabled = false;
             }
         }
 



More information about the mapguide-commits mailing list