[mapguide-commits] r7648 - trunk/Tools/Maestro/Maestro.Base/UI/Packaging

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Thu Jun 27 00:33:17 PDT 2013


Author: jng
Date: 2013-06-27 00:33:17 -0700 (Thu, 27 Jun 2013)
New Revision: 7648

Modified:
   trunk/Tools/Maestro/Maestro.Base/UI/Packaging/CreatePackageDialog.cs
Log:
#2304: Fix OK button in Create Package dialog not being enabled properly

Modified: trunk/Tools/Maestro/Maestro.Base/UI/Packaging/CreatePackageDialog.cs
===================================================================
--- trunk/Tools/Maestro/Maestro.Base/UI/Packaging/CreatePackageDialog.cs	2013-06-27 06:09:34 UTC (rev 7647)
+++ trunk/Tools/Maestro/Maestro.Base/UI/Packaging/CreatePackageDialog.cs	2013-06-27 07:33:17 UTC (rev 7648)
@@ -214,9 +214,11 @@
         void CheckSubmitState()
         {
             btnOK.Enabled =
-                txtResourcePath.Text.Length > 0 &&
-                txtPackageFilename.Text.Length > 0 &&
-                SelectedTypes.Length > 0;
+                SelectedTypes.Length > 0 &&
+                (
+                    (this.Source == PackageSource.Folder && txtResourcePath.Text.Length > 0) ||
+                    (this.Source == PackageSource.ResourceIdList && txtPackageFilename.Text.Length > 0)
+                );
         }
 
         private void btnBrowseRestorePath_Click(object sender, EventArgs e)



More information about the mapguide-commits mailing list