Author: spouliot
Date: 2006-11-28 22:11:11 -0500 (Tue, 28 Nov 2006)
New Revision: 68634

Modified:
   trunk/mcs/class/System.Drawing/System.Drawing.Design/ChangeLog
   trunk/mcs/class/System.Drawing/System.Drawing.Design/UITypeEditor.cs
Log:
2006-11-28  Sebastien Pouliot  <[EMAIL PROTECTED]>

        * UITypeEditor.cs: Remove MonoTODO (this always returns false).



Modified: trunk/mcs/class/System.Drawing/System.Drawing.Design/ChangeLog
===================================================================
--- trunk/mcs/class/System.Drawing/System.Drawing.Design/ChangeLog      
2006-11-29 01:49:48 UTC (rev 68633)
+++ trunk/mcs/class/System.Drawing/System.Drawing.Design/ChangeLog      
2006-11-29 03:11:11 UTC (rev 68634)
@@ -1,3 +1,7 @@
+2006-11-28  Sebastien Pouliot  <[EMAIL PROTECTED]>
+
+       * UITypeEditor.cs: Remove MonoTODO (this always returns false).
+
 2006-08-29  Sebastien Pouliot  <[EMAIL PROTECTED]>
 
        * ToolboxItem.cs: Fix compiler warning.

Modified: trunk/mcs/class/System.Drawing/System.Drawing.Design/UITypeEditor.cs
===================================================================
--- trunk/mcs/class/System.Drawing/System.Drawing.Design/UITypeEditor.cs        
2006-11-29 01:49:48 UTC (rev 68633)
+++ trunk/mcs/class/System.Drawing/System.Drawing.Design/UITypeEditor.cs        
2006-11-29 03:11:11 UTC (rev 68634)
@@ -36,8 +36,7 @@
 {
        [PermissionSet (SecurityAction.LinkDemand, Unrestricted = true)]
        [PermissionSet (SecurityAction.InheritanceDemand, Unrestricted = true)]
-       public class UITypeEditor
-       {
+       public class UITypeEditor {
 
                public UITypeEditor()
                {
@@ -49,22 +48,27 @@
                        // We already stated that we can't edit ;)
                        return value;
                }
-               public object EditValue(IServiceProvider provider, object value)
+
+               public object EditValue (IServiceProvider provider, object 
value)
                {
                        return EditValue (null, provider, value);
                }
+
                public virtual UITypeEditorEditStyle GetEditStyle 
(ITypeDescriptorContext context)
                {
                        return UITypeEditorEditStyle.None;
                }
+
                public UITypeEditorEditStyle GetEditStyle ()
                {
                        return GetEditStyle (null);
                }
+
                public bool GetPaintValueSupported ()
                {
                        return GetPaintValueSupported (null);
                }
+
                public virtual bool GetPaintValueSupported 
(ITypeDescriptorContext context)
                {
                        return false;
@@ -74,6 +78,7 @@
                {
                        PaintValue (new PaintValueEventArgs (null, value, 
canvas, rectangle));
                }
+
                public virtual void PaintValue (PaintValueEventArgs e)
                {
                        // LAMESPEC: Did not find info in the docs if this 
should do something here.
@@ -83,9 +88,8 @@
                }
 #endif
 #if NET_2_0
-               [MonoTODO]
                public virtual bool IsDropDownResizable {
-                       get { throw new NotImplementedException (); }
+                       get { return false; }
                }
 #endif
        }

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to