Author: calberto
Date: 2007-10-17 19:39:08 -0400 (Wed, 17 Oct 2007)
New Revision: 87727
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/PropertyGridView.cs
Log:
2007-10-17 Carlos Alberto Cortez <[EMAIL PROTECTED]>
* PropertyGridView.cs: Look for RefreshPropertiesAttribute
when modifying a property, and if found then invalidate as
requested.
Fixes part of #324865.
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-10-17 23:04:47 UTC (rev 87726)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2007-10-17 23:39:08 UTC (rev 87727)
@@ -1,3 +1,10 @@
+2007-10-17 Carlos Alberto Cortez <[EMAIL PROTECTED]>
+
+ * PropertyGridView.cs: Look for RefreshPropertiesAttribute
+ when modifying a property, and if found then invalidate as
+ requested.
+ Fixes part of #324865.
+
2007-10-17 Geoff Norton <[EMAIL PROTECTED]>
* XplatUIOSX.cs: Re-enable the native driver on the Mac. This is still
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/PropertyGridView.cs
===================================================================
---
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/PropertyGridView.cs
2007-10-17 23:04:47 UTC (rev 87726)
+++
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/PropertyGridView.cs
2007-10-17 23:39:08 UTC (rev 87727)
@@ -813,9 +813,14 @@
desc.SetValue(target, newVal);
}
+ // TODO - What else should RefreshProperties.All do?
+ RefreshPropertiesAttribute refresh_attr =
(RefreshPropertiesAttribute) desc.Attributes [typeof
(RefreshPropertiesAttribute)];
+ if (refresh_attr != null &&
refresh_attr.RefreshProperties != RefreshProperties.None)
+ Invalidate ();
+
property_grid.PropertyValueChangedInternal ();
}
-
+
private void DropDownButtonClicked (object sender, EventArgs e)
{
UITypeEditor editor =
property_grid.SelectedGridItem.PropertyDescriptor.GetEditor (typeof
(UITypeEditor)) as UITypeEditor;
if (editor == null) {
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches