Author: rolf
Date: 2007-05-23 11:28:04 -0400 (Wed, 23 May 2007)
New Revision: 77843
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolBarButton.cs
Log:
* ToolBarButton.cs: Implement Name.
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-05-23 15:24:39 UTC (rev 77842)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-05-23 15:28:04 UTC (rev 77843)
@@ -1,3 +1,7 @@
+2007-05-23 Rolf Bjarne Kvinge <[EMAIL PROTECTED]>
+
+ * ToolBarButton.cs: Implement Name.
+
2007-05-22 Everaldo Canuto <[EMAIL PROTECTED]>
* ToolBar.cs: Prevent context menu to be typed as MainMenu. Fixes
#81675.
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolBarButton.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolBarButton.cs
2007-05-23 15:24:39 UTC (rev 77842)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolBarButton.cs
2007-05-23 15:28:04 UTC (rev 77843)
@@ -52,6 +52,9 @@
private string text = "";
private string tooltip = "";
private bool visible = true;
+#if NET_2_0
+ private string name;
+#endif
#endregion
#region constructors
@@ -137,7 +140,22 @@
}
}
+#if NET_2_0
[Browsable (false)]
+ public string Name {
+ get {
+ if (name == null)
+ return string.Empty;
+
+ return name;
+ }
+ set {
+ name = value;
+ }
+ }
+#endif
+
+ [Browsable (false)]
public ToolBar Parent {
get { return parent; }
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches