Author: ivanz
Date: 2008-01-23 20:16:04 -0500 (Wed, 23 Jan 2008)
New Revision: 93756

Modified:
   trunk/mcs/class/System.Design/System.Windows.Forms.Design/ChangeLog
   trunk/mcs/class/System.Design/System.Windows.Forms.Design/DockEditor.cs
Log:
2008-01-24  Ivan N. Zlatev  <[EMAIL PROTECTED]>

         * DockEditor.cs: ITypeDescriptorContext.Instance doesn't 
         contain the current value. It could contain the owner.
         Use the initial value parameter.



Modified: trunk/mcs/class/System.Design/System.Windows.Forms.Design/ChangeLog
===================================================================
--- trunk/mcs/class/System.Design/System.Windows.Forms.Design/ChangeLog 
2008-01-24 00:54:58 UTC (rev 93755)
+++ trunk/mcs/class/System.Design/System.Windows.Forms.Design/ChangeLog 
2008-01-24 01:16:04 UTC (rev 93756)
@@ -1,3 +1,9 @@
+2008-01-24  Ivan N. Zlatev  <[EMAIL PROTECTED]>
+
+        * DockEditor.cs: ITypeDescriptorContext.Instance doesn't 
+        contain the current value. It could contain the owner.
+        Use the initial value parameter.
+
 2008-01-04  Ivan N. Zlatev  <[EMAIL PROTECTED]>
        
        * ParentControlDesigner.cs: Create a Transaction when adding a

Modified: 
trunk/mcs/class/System.Design/System.Windows.Forms.Design/DockEditor.cs
===================================================================
--- trunk/mcs/class/System.Design/System.Windows.Forms.Design/DockEditor.cs     
2008-01-24 00:54:58 UTC (rev 93755)
+++ trunk/mcs/class/System.Design/System.Windows.Forms.Design/DockEditor.cs     
2008-01-24 01:16:04 UTC (rev 93756)
@@ -4,7 +4,7 @@
 // Author:
 //   Gert Driesen ([EMAIL PROTECTED])
 //
-// (C) 2004 Novell
+// (C) 2004-2008 Novell
 //
 
 //
@@ -39,7 +39,6 @@
                {
                }
 
-               [MonoTODO]
                public override object EditValue (ITypeDescriptorContext 
context, IServiceProvider provider, object value)
                {
                        if (context != null && provider != null)
@@ -49,7 +48,7 @@
                                {
                                        // Create the UI editor control
                                        DockEditorControl dockEditorControl = 
new DockEditorControl(editorService); 
-                                       dockEditorControl.DockStyle = 
(DockStyle)context.Instance;
+                                       dockEditorControl.DockStyle = 
(DockStyle) value;
                                        
editorService.DropDownControl(dockEditorControl);
 
                                        return dockEditorControl.DockStyle;

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

Reply via email to