2002-05-07 Rodrigo Moya <rodrigo@ximian.com>
authorRodrigo Moya <rodrigo@mono-cvs.ximian.com>
Tue, 7 May 2002 20:03:16 +0000 (20:03 -0000)
committerRodrigo Moya <rodrigo@mono-cvs.ximian.com>
Tue, 7 May 2002 20:03:16 +0000 (20:03 -0000)
* EventDescriptor.cs: added missing constructors.

* EventDescriptorCollection.cs: fixed interface methods implementation

* IDataErrorInfo.cs:
* IEditableObject.cs: new interfaces.

svn path=/trunk/mcs/; revision=4388

mcs/class/System/System.ComponentModel/ChangeLog
mcs/class/System/System.ComponentModel/EventDescriptor.cs
mcs/class/System/System.ComponentModel/EventDescriptorCollection.cs
mcs/class/System/System.ComponentModel/ICustomTypeDescriptor.cs
mcs/class/System/System.ComponentModel/IDataErrorInfo.cs [new file with mode: 0644]
mcs/class/System/System.ComponentModel/IEditableObject.cs [new file with mode: 0644]

index b7fd161959b6dcd9434255e65d4f17451897743a..7d0fd2fe2371cf7c98e669937cf4a2f0e6e02e2f 100644 (file)
@@ -1,3 +1,12 @@
+2002-05-07  Rodrigo Moya <rodrigo@ximian.com>
+
+       * EventDescriptor.cs: added missing constructors.
+
+       * EventDescriptorCollection.cs: fixed interface methods implementation
+
+       * IDataErrorInfo.cs:
+       * IEditableObject.cs: new interfaces.
+
 2002-05-05  Gonzalo Paniagua Javier <gonzalo@ximian.com>
 
        * System.ComponentModel/AttributeCollection.cs: added a cast to make
index 623319a853104e4d682c3ad51e2e0dc0e48d9256..7c60e54c4324f74012b80896e544436f83154102 100644 (file)
@@ -1,9 +1,10 @@
 //
 // System.ComponentModel.EventDescriptor.cs
 //
-// Author: Rodrigo Moya (rodrigo@ximian.com)
+// Authors:
+//   Rodrigo Moya (rodrigo@ximian.com)
 //
-// (C) Ximian, Inc.
+// (C) Ximian, Inc. 2002
 //
 
 namespace System.ComponentModel
@@ -11,8 +12,19 @@ namespace System.ComponentModel
        public abstract class EventDescriptor : MemberDescriptor
        {
                [MonoTODO]
-               protected EventDescriptor (MemberDescriptor desc) {
+               protected EventDescriptor (MemberDescriptor desc)
+               {
                        throw new NotImplementedException ();
                }
+
+               [MonoTODO]
+               protected EventDescriptor (MemberDescriptor desc, Attribute[] attrs)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               protected EventDescriptor(string str, Attribute[] attrs)
+               {
+               }
        }
 }
index f1974756ea9f98034831988cafb990ad4f15beed..4ed4a808726b7723c9cdf68cdf194fb55e54d28c 100644 (file)
@@ -21,7 +21,7 @@ namespace System.ComponentModel
                                this.Add (events[i]);
                }
 
-               public int Add (EventDescriptor value) {
+               public int IList.Add (object value) {
                        return eventList.Add (value);
                }
 
index 89b745230f7c89c60fb78bd3825d27ca9f815103..c716355a6012ff8905a1e3c98dedc77cbbc0b6e9 100644 (file)
@@ -1,9 +1,10 @@
 //
 // System.ComponentModel.ICustomTypeDescriptor.cs
 //
-// Author: Rodrigo Moya (rodrigo@ximian.com)
+// (C) 2002 Ximian, Inc.  http://www.ximian.com
 //
-// (C) Ximian, Inc.
+// Authors:
+//   Rodrigo Moya (rodrigo@ximian.com)
 //
 
 namespace System.ComponentModel
diff --git a/mcs/class/System/System.ComponentModel/IDataErrorInfo.cs b/mcs/class/System/System.ComponentModel/IDataErrorInfo.cs
new file mode 100644 (file)
index 0000000..a37627d
--- /dev/null
@@ -0,0 +1,18 @@
+//
+// System.ComponentModel.IDataErrorInfo.cs
+//
+// (C) 2002 Ximian, Inc.  http://www.ximian.com
+//
+// Authors:
+//   Rodrigo Moya (rodrigo@ximian.com)
+//
+
+namespace System.ComponentModel
+{
+       public interface IDataErrorInfo
+       {
+               string Error { get; }
+
+               string this[string columnName] { get; }
+       }
+}
diff --git a/mcs/class/System/System.ComponentModel/IEditableObject.cs b/mcs/class/System/System.ComponentModel/IEditableObject.cs
new file mode 100644 (file)
index 0000000..40e4d10
--- /dev/null
@@ -0,0 +1,20 @@
+//
+// System.ComponentModel.IEditableObject.cs
+//
+// (C) 2002 Ximian, Inc.  http://www.ximian.com
+//
+// Authors:
+//   Rodrigo Moya (rodrigo@ximian.com)
+//
+
+namespace System.ComponentModel
+{
+       public interface IEditableObject
+       {
+               void BeginEdit();
+
+               void CancelEdit();
+
+               void EndEdit();
+       }
+}