2002-04-28 Rodrigo Moya <rodrigo@ximian.com>
authorRodrigo Moya <rodrigo@mono-cvs.ximian.com>
Sun, 28 Apr 2002 13:11:25 +0000 (13:11 -0000)
committerRodrigo Moya <rodrigo@mono-cvs.ximian.com>
Sun, 28 Apr 2002 13:11:25 +0000 (13:11 -0000)
* IListSource.cs:
* ISupportInitialize.cs:
* MarshalByValueComponent.cs: new stubs, needed for System.Data
compilation.

* PropertyChangedEventArgs.cs:
* CollectionChangeEventHandler.cs:
* CollectionChangeEventArgs.cs: implemented.

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

mcs/class/System/System.ComponentModel/ChangeLog
mcs/class/System/System.ComponentModel/CollectionChangeEventArgs.cs [new file with mode: 0644]
mcs/class/System/System.ComponentModel/CollectionChangeEventHandler.cs [new file with mode: 0644]
mcs/class/System/System.ComponentModel/IListSource.cs [new file with mode: 0644]
mcs/class/System/System.ComponentModel/ISupportInitialize.cs [new file with mode: 0644]
mcs/class/System/System.ComponentModel/MarshalByValueComponent.cs [new file with mode: 0644]
mcs/class/System/System.ComponentModel/PropertyChangedEventArgs.cs [new file with mode: 0644]

index 5f2c298f61a9d679c08122c88790ec3c44283664..b5963826b86ee2c0ffc0fd434c700ff4b61083c7 100644 (file)
@@ -1,3 +1,14 @@
+2002-04-28  Rodrigo Moya <rodrigo@ximian.com>
+
+       * IListSource.cs:
+       * ISupportInitialize.cs:
+       * MarshalByValueComponent.cs: new stubs, needed for System.Data
+       compilation.
+
+       * PropertyChangedEventArgs.cs:
+       * CollectionChangeEventHandler.cs:
+       * CollectionChangeEventArgs.cs: implemented.
+
 2002-04-28  Lawrence Pit <loz@cable.a2000.nl>
 
        * Added error code 11001 to Win32Exception, used by Dns.c
diff --git a/mcs/class/System/System.ComponentModel/CollectionChangeEventArgs.cs b/mcs/class/System/System.ComponentModel/CollectionChangeEventArgs.cs
new file mode 100644 (file)
index 0000000..6ace57b
--- /dev/null
@@ -0,0 +1,38 @@
+//
+// System.ComponentModel.CollectionChangeEventArgs.cs
+//
+// Author:
+//   Rodrigo Moya (rodrigo@ximian.com)
+//
+// (C) Ximian, Inc
+//
+
+namespace System.ComponentModel
+{
+       /// <summary>
+       /// Provides data for the CollectionChanged event.
+       /// </summary>
+       public class CollectionChangeEventArgs : EventArgs
+       {
+               private CollectionChangeAction changeAction;
+               private object theElement;
+               
+               public CollectionChangeEventArgs (CollectionChangeAction action,
+                                                 object element) {
+                       changeAction = action;
+                       theElement = element;
+               }
+
+               public virtual CollectionChangeAction Action {
+                       get {
+                               return changeAction;
+                       }
+               }
+
+               public virtual object Element {
+                       get {
+                               return theElement;
+                       }
+               }
+       }
+}
diff --git a/mcs/class/System/System.ComponentModel/CollectionChangeEventHandler.cs b/mcs/class/System/System.ComponentModel/CollectionChangeEventHandler.cs
new file mode 100644 (file)
index 0000000..6194af6
--- /dev/null
@@ -0,0 +1,14 @@
+//
+// System.ComponentModel.CollectionChangeEventHandler.cs
+//
+// Author:
+//   Rodrigo Moya (rodrigo@ximian.com)
+//
+// (C) Ximian, Inc
+//
+
+namespace System.ComponentModel
+{
+       public delegate void CollectionChangeEventHandler (object sender,
+                                                          CollectionChangeEventArgs e);
+}      
diff --git a/mcs/class/System/System.ComponentModel/IListSource.cs b/mcs/class/System/System.ComponentModel/IListSource.cs
new file mode 100644 (file)
index 0000000..f0d27cf
--- /dev/null
@@ -0,0 +1,23 @@
+//
+// System.ComponentModel.IListSource.cs
+//
+// Author:
+//   Rodrigo Moya (rodrigo@ximian.com)
+//
+// (C) Ximian, Inc
+//
+
+using System.Collections;
+
+namespace System.ComponentModel
+{
+       /// <summary>
+       /// Provides functionality to an object to return a list that can be bound to a data source.
+       /// </summary>
+       public interface IListSource
+       {
+               IList GetList ();
+               
+               bool ContainsListCollection { get; }
+       }
+}
diff --git a/mcs/class/System/System.ComponentModel/ISupportInitialize.cs b/mcs/class/System/System.ComponentModel/ISupportInitialize.cs
new file mode 100644 (file)
index 0000000..d5b15f6
--- /dev/null
@@ -0,0 +1,23 @@
+//
+// System.ComponentModel.ISupportInitialize.cs
+//
+// Author:
+//   Rodrigo Moya (rodrigo@ximian.com)
+//
+// (C) Ximian, Inc
+//
+
+namespace System.ComponentModel
+{
+       /// <summary>
+       /// Specifies that this object supports a simple, transacted notification for batch initialization.
+       /// </summary>
+       public interface ISupportInitialize
+       {
+               void BeginInit ();
+
+               void EndInit ();
+       }
+               
+}
+       
diff --git a/mcs/class/System/System.ComponentModel/MarshalByValueComponent.cs b/mcs/class/System/System.ComponentModel/MarshalByValueComponent.cs
new file mode 100644 (file)
index 0000000..4bd27e8
--- /dev/null
@@ -0,0 +1,63 @@
+//
+// System.ComponentModel.MarshalByValueComponent.cs
+//
+// Author:
+//   Rodrigo Moya (rodrigo@ximian.com)
+//
+// (C) Ximian, Inc
+//
+
+namespace System.ComponentModel
+{
+       /// <summary>
+       /// Implements IComponent and provides the base implementation for remotable components that are marshaled by value (a copy of the serialized object is passed).
+       /// </summary>
+       public class MarshalByValueComponent : IComponent, IDisposable, IServiceProvider
+       {
+               [MonoTODO]
+               public MarshalByValueComponent () {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public void Dispose () {
+                       throw new NotImplementedException ();
+               }
+
+               protected virtual void Dispose (bool disposing) {
+               }
+
+               public virtual object GetService (Type service) {
+                       return null;
+               }
+               
+               public virtual IContainer Container {
+                       get {
+                               return null;
+                       }
+               }
+
+               public virtual bool DesignMode {
+                       get {
+                               return false;
+                       }
+               }
+
+               public virtual ISite Site {
+                       get {
+                               return null;
+                       }
+                       set {
+                       }
+               }
+
+               [MonoTODO]
+               protected EventHandlerList Events {
+                       get {
+                               throw new NotImplementedException ();
+                       }
+               }
+               
+               public event EventHandler Disposed;
+       }
+}
diff --git a/mcs/class/System/System.ComponentModel/PropertyChangedEventArgs.cs b/mcs/class/System/System.ComponentModel/PropertyChangedEventArgs.cs
new file mode 100644 (file)
index 0000000..d456a80
--- /dev/null
@@ -0,0 +1,29 @@
+//
+// System.ComponentModel.PropertyChangedEventArgs.cs
+//
+// Author:
+//   Rodrigo Moya (rodrigo@ximian.com)
+//
+// (C) Ximian, Inc
+//
+
+namespace System.ComponentModel
+{
+       /// <summary>
+       /// Provides data for the PropertyChanged event.
+       /// </summary>
+       public class PropertyChangedEventArgs : EventArgs
+       {
+               private string propertyName;
+               
+               public PropertyChangedEventArgs (string name) {
+                       propertyName = name;
+               }
+
+               public virtual string PropertyName {
+                       get {
+                               return propertyName;
+                       }
+               }
+       }
+}