Author: jpobst
Date: 2007-08-24 18:30:27 -0400 (Fri, 24 Aug 2007)
New Revision: 84831
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/NodeLabelEditEventArgs.cs
Log:
2007-08-24 Jonathan Pobst <[EMAIL PROTECTED]>
* NodeLabelEditEventArgs.cs: EndEdit immediately when CancelEdit is
called.
Not a big fan of reacting immediately to a field in an EventArg, but
that's
the way it's done. (This is part of the previous commit that got left
out.)
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-08-24 22:16:56 UTC (rev 84830)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-08-24 22:30:27 UTC (rev 84831)
@@ -1,3 +1,10 @@
+
+2007-08-24 Jonathan Pobst <[EMAIL PROTECTED]>
+
+ * NodeLabelEditEventArgs.cs: EndEdit immediately when CancelEdit is
called.
+ Not a big fan of reacting immediately to a field in an EventArg, but
that's
+ the way it's done. (This is part of the previous commit that got left
out.)
+
2007-08-25 Gert Driesen <[EMAIL PROTECTED]>
* FolderBrowserDialog.cs: Removed need for separate description field.
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/NodeLabelEditEventArgs.cs
===================================================================
---
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/NodeLabelEditEventArgs.cs
2007-08-24 22:16:56 UTC (rev 84830)
+++
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/NodeLabelEditEventArgs.cs
2007-08-24 22:30:27 UTC (rev 84831)
@@ -45,7 +45,12 @@
public bool CancelEdit {
get { return cancel; }
- set { cancel = value; }
+ set {
+ cancel = value;
+
+ if (cancel)
+ node.EndEdit (true);
+ }
}
public TreeNode Node {
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches