[mapguide-commits] r6165 - in trunk/Tools/Maestro:
Maestro.Editors/WebLayout Maestro.Shared.UI
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Wed Oct 5 01:33:17 EDT 2011
Author: jng
Date: 2011-10-04 22:33:17 -0700 (Tue, 04 Oct 2011)
New Revision: 6165
Modified:
trunk/Tools/Maestro/Maestro.Editors/WebLayout/CustomCommandPropertyCtrl.cs
trunk/Tools/Maestro/Maestro.Shared.UI/TextBoxBinder.cs
Log:
#1823: Unlock the command property fields. The name field remains read-only because this an internal command name that is referenced by toolbar and menu items and not exposed in the UI
Modified: trunk/Tools/Maestro/Maestro.Editors/WebLayout/CustomCommandPropertyCtrl.cs
===================================================================
--- trunk/Tools/Maestro/Maestro.Editors/WebLayout/CustomCommandPropertyCtrl.cs 2011-10-04 07:06:14 UTC (rev 6164)
+++ trunk/Tools/Maestro/Maestro.Editors/WebLayout/CustomCommandPropertyCtrl.cs 2011-10-05 05:33:17 UTC (rev 6165)
@@ -80,13 +80,13 @@
else
{
//Not editable
- txtTooltip.ReadOnly = true;
- txtDescription.ReadOnly = true;
- txtDisabledIcon.ReadOnly = true;
- txtEnabledIcon.ReadOnly = true;
+ txtTooltip.ReadOnly = false;
+ txtDescription.ReadOnly = false;
+ txtDisabledIcon.ReadOnly = false;
+ txtEnabledIcon.ReadOnly = false;
txtName.ReadOnly = true;
- txtTitle.ReadOnly = true;
- txtTooltip.ReadOnly = true;
+ txtTitle.ReadOnly = false;
+ txtTooltip.ReadOnly = false;
tabProperties.TabPages.Remove(TAB_ADVANCED);
}
Modified: trunk/Tools/Maestro/Maestro.Shared.UI/TextBoxBinder.cs
===================================================================
--- trunk/Tools/Maestro/Maestro.Shared.UI/TextBoxBinder.cs 2011-10-04 07:06:14 UTC (rev 6164)
+++ trunk/Tools/Maestro/Maestro.Shared.UI/TextBoxBinder.cs 2011-10-05 05:33:17 UTC (rev 6165)
@@ -43,7 +43,10 @@
public static Binding BindText(TextBoxBase txt, Binding b)
{
txt.DataBindings.Add(b);
- txt.TextChanged += (sender, e) => { b.WriteValue(); };
+ txt.TextChanged += (sender, e) =>
+ {
+ b.WriteValue();
+ };
return b;
}
@@ -58,7 +61,10 @@
public static Binding BindText(TextBoxBase txt, object dataSource, string dataMember)
{
var binding = txt.DataBindings.Add("Text", dataSource, dataMember);
- txt.TextChanged += (sender, e) => { binding.WriteValue(); };
+ txt.TextChanged += (sender, e) =>
+ {
+ binding.WriteValue();
+ };
return binding;
}
More information about the mapguide-commits
mailing list