From 8d9414032f6ae21eddaade9e796bbc7d83bd0785 Mon Sep 17 00:00:00 2001 From: Rodrigo Moya Date: Tue, 7 May 2002 20:03:16 +0000 Subject: [PATCH] 2002-05-07 Rodrigo Moya * EventDescriptor.cs: added missing constructors. * EventDescriptorCollection.cs: fixed interface methods implementation * IDataErrorInfo.cs: * IEditableObject.cs: new interfaces. svn path=/trunk/mcs/; revision=4388 --- .../System/System.ComponentModel/ChangeLog | 9 +++++++++ .../System.ComponentModel/EventDescriptor.cs | 18 ++++++++++++++--- .../EventDescriptorCollection.cs | 2 +- .../ICustomTypeDescriptor.cs | 5 +++-- .../System.ComponentModel/IDataErrorInfo.cs | 18 +++++++++++++++++ .../System.ComponentModel/IEditableObject.cs | 20 +++++++++++++++++++ 6 files changed, 66 insertions(+), 6 deletions(-) create mode 100644 mcs/class/System/System.ComponentModel/IDataErrorInfo.cs create mode 100644 mcs/class/System/System.ComponentModel/IEditableObject.cs diff --git a/mcs/class/System/System.ComponentModel/ChangeLog b/mcs/class/System/System.ComponentModel/ChangeLog index b7fd161959b..7d0fd2fe237 100644 --- a/mcs/class/System/System.ComponentModel/ChangeLog +++ b/mcs/class/System/System.ComponentModel/ChangeLog @@ -1,3 +1,12 @@ +2002-05-07 Rodrigo Moya + + * EventDescriptor.cs: added missing constructors. + + * EventDescriptorCollection.cs: fixed interface methods implementation + + * IDataErrorInfo.cs: + * IEditableObject.cs: new interfaces. + 2002-05-05 Gonzalo Paniagua Javier * System.ComponentModel/AttributeCollection.cs: added a cast to make diff --git a/mcs/class/System/System.ComponentModel/EventDescriptor.cs b/mcs/class/System/System.ComponentModel/EventDescriptor.cs index 623319a8531..7c60e54c432 100644 --- a/mcs/class/System/System.ComponentModel/EventDescriptor.cs +++ b/mcs/class/System/System.ComponentModel/EventDescriptor.cs @@ -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) + { + } } } diff --git a/mcs/class/System/System.ComponentModel/EventDescriptorCollection.cs b/mcs/class/System/System.ComponentModel/EventDescriptorCollection.cs index f1974756ea9..4ed4a808726 100644 --- a/mcs/class/System/System.ComponentModel/EventDescriptorCollection.cs +++ b/mcs/class/System/System.ComponentModel/EventDescriptorCollection.cs @@ -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); } diff --git a/mcs/class/System/System.ComponentModel/ICustomTypeDescriptor.cs b/mcs/class/System/System.ComponentModel/ICustomTypeDescriptor.cs index 89b745230f7..c716355a601 100644 --- a/mcs/class/System/System.ComponentModel/ICustomTypeDescriptor.cs +++ b/mcs/class/System/System.ComponentModel/ICustomTypeDescriptor.cs @@ -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 index 00000000000..a37627d07ca --- /dev/null +++ b/mcs/class/System/System.ComponentModel/IDataErrorInfo.cs @@ -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 index 00000000000..40e4d105c17 --- /dev/null +++ b/mcs/class/System/System.ComponentModel/IEditableObject.cs @@ -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(); + } +} -- 2.25.1