Author: jpobst
Date: 2007-08-30 11:04:24 -0400 (Thu, 30 Aug 2007)
New Revision: 85056
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms.Design/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms.Design/ComponentEditorForm.cs
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms.Design/ComponentEditorPage.cs
Log:
2007-08-30 Jonathan Pobst <[EMAIL PROTECTED]>
* ComponentEditorPage.cs, ComponentEditorForm.cs: Override AutoSize,
AutoSizeChanged.
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms.Design/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms.Design/ChangeLog
2007-08-30 14:50:19 UTC (rev 85055)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms.Design/ChangeLog
2007-08-30 15:04:24 UTC (rev 85056)
@@ -1,3 +1,8 @@
+2007-08-30 Jonathan Pobst <[EMAIL PROTECTED]>
+
+ * ComponentEditorPage.cs, ComponentEditorForm.cs: Override AutoSize,
+ AutoSizeChanged.
+
2007-01-20 Chris Toshok <[EMAIL PROTECTED]>
* ComponentEditorPage.cs: class status fixes.
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms.Design/ComponentEditorForm.cs
===================================================================
---
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms.Design/ComponentEditorForm.cs
2007-08-30 14:50:19 UTC (rev 85055)
+++
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms.Design/ComponentEditorForm.cs
2007-08-30 15:04:24 UTC (rev 85056)
@@ -39,6 +39,18 @@
public ComponentEditorForm(object component, Type[] pageTypes){
}
+ #region Public Properties
+#if NET_2_0
+ [Browsable (false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
+ [DesignerSerializationVisibility
(DesignerSerializationVisibility.Hidden)]
+ new public virtual bool AutoSize {
+ get { return base.AutoSize; }
+ set { base.AutoSize = value; }
+ }
+#endif
+ #endregion
+
[MonoTODO]
protected override void OnActivated(EventArgs e){
}
@@ -75,5 +87,16 @@
// can't override the function in control. bug in compiler.
Fixed?
protected override void OnHelpRequested(HelpEventArgs e){
}
+
+ #region Public Events
+#if NET_2_0
+ [Browsable (false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
+ public new event EventHandler AutoSizeChanged {
+ add { base.AutoSizeChanged += value; }
+ remove { base.AutoSizeChanged -= value; }
+ }
+#endif
+ #endregion
}
}
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms.Design/ComponentEditorPage.cs
===================================================================
---
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms.Design/ComponentEditorPage.cs
2007-08-30 14:50:19 UTC (rev 85055)
+++
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms.Design/ComponentEditorPage.cs
2007-08-30 15:04:24 UTC (rev 85056)
@@ -47,7 +47,18 @@
{
}
- public bool CommitOnDeactivate {
+#if NET_2_0
+ [Browsable (false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
+ [DesignerSerializationVisibility
(DesignerSerializationVisibility.Hidden)]
+ new public virtual bool AutoSize {
+ get { return base.AutoSize; }
+ set { base.AutoSize = value; }
+ }
+#endif
+
+ public bool CommitOnDeactivate
+ {
get { return commitOnDeactivate; }
set { commitOnDeactivate = value; }
}
@@ -189,5 +200,16 @@
{
return false;
}
+
+ #region Public Events
+#if NET_2_0
+ [Browsable (false)]
+ [EditorBrowsable (EditorBrowsableState.Never)]
+ public new event EventHandler AutoSizeChanged {
+ add { base.AutoSizeChanged += value; }
+ remove { base.AutoSizeChanged -= value; }
+ }
+#endif
+ #endregion
}
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches