dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] CVS: pnetlib/System/ComponentModel CancelEventArgs


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnetlib/System/ComponentModel CancelEventArgs.cs, 1.4, 1.5 CancelEventHandler.cs, 1.2, 1.3 CollectionChangeEventArgs.cs, 1.4, 1.5 CollectionChangeEventHandler.cs, 1.2, 1.3 DesignOnlyAttribute.cs, 1.4, 1.5 DesignTimeVisibleAttribute.cs, 1.4, 1.5 DesignerSerializationVisibilityAttribute.cs, 1.4, 1.5 ICustomTypeDescriptor.cs, 1.3, 1.4 IDataErrorInfo.cs, 1.2, 1.3 IEditableObject.cs, 1.2, 1.3 IExtenderProvider.cs, 1.2, 1.3 IListSource.cs, 1.2, 1.3 ISupportInitialize.cs, 1.2, 1.3 ISynchronizeInvoke.cs, 1.2, 1.3 ITypedList.cs, 1.2, 1.3 ListChangedEventHandler.cs, 1.3, 1.4 PropertyChangedEventArgs.cs, 1.4, 1.5 PropertyChangedEventHandler.cs, 1.2, 1.3 RefreshEventArgs.cs, 1.4, 1.5 RefreshEventHandler.cs, 1.2, 1.3 Win32Exception.cs, 1.9, 1.10
Date: Tue, 16 Sep 2003 18:00:21 -0400

Update of /cvsroot/dotgnu-pnet/pnetlib/System/ComponentModel
In directory subversions:/tmp/cvs-serv8330/System/ComponentModel

Modified Files:
        CancelEventArgs.cs CancelEventHandler.cs 
        CollectionChangeEventArgs.cs CollectionChangeEventHandler.cs 
        DesignOnlyAttribute.cs DesignTimeVisibleAttribute.cs 
        DesignerSerializationVisibilityAttribute.cs 
        ICustomTypeDescriptor.cs IDataErrorInfo.cs IEditableObject.cs 
        IExtenderProvider.cs IListSource.cs ISupportInitialize.cs 
        ISynchronizeInvoke.cs ITypedList.cs ListChangedEventHandler.cs 
        PropertyChangedEventArgs.cs PropertyChangedEventHandler.cs 
        RefreshEventArgs.cs RefreshEventHandler.cs Win32Exception.cs 
Log Message:


Rewrite some "System.ComponentModel" classes and improve consistency.


Index: CancelEventArgs.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/System/ComponentModel/CancelEventArgs.cs,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** CancelEventArgs.cs  29 May 2003 05:38:17 -0000      1.4
--- CancelEventArgs.cs  16 Sep 2003 22:00:18 -0000      1.5
***************
*** 1,11 ****
  /*
!  * CancelEventArgs.cs - Implementation of 
!  *                                            
"System.ComponentModel.CancelEventArgs" class
   *
!  * Copyright (C) 2002  Southern Storm Software, Pty Ltd.
!  * Copyright (C) 2002  Free Software Foundation, Inc.
   * 
-  * Contributed by Gopal.V
-  *
   * This program is free software; you can redistribute it and/or modify
   * it under the terms of the GNU General Public License as published by
--- 1,8 ----
  /*
!  * CancelEventArgs.cs - Implementation of the
!  *                    "System.ComponentModel.CancelEventArgs" class.
   *
!  * Copyright (C) 2003  Southern Storm Software, Pty Ltd.
   * 
   * This program is free software; you can redistribute it and/or modify
   * it under the terms of the GNU General Public License as published by
***************
*** 23,28 ****
   */
  
- using System;
- 
  namespace System.ComponentModel
  {
--- 20,23 ----
***************
*** 30,61 ****
  #if CONFIG_COMPONENT_MODEL
  
!       public class CancelEventArgs: EventArgs
!       {
!       
!               private bool cancel;
!       
!               public CancelEventArgs()
!               {
!                       cancel = false;
!               }
! 
!               public CancelEventArgs(bool cancel)
!               {
!                       this.cancel = cancel;
!               }
!               
!               public bool Cancel 
!               {
!                       get
                        {
!                               return cancel;
                        }
!                       set
                        {
!                               cancel = value;
                        }
!               }
  
!       }
! #endif
! }//namespace
--- 25,59 ----
  #if CONFIG_COMPONENT_MODEL
  
! public class CancelEventArgs : EventArgs
! {
!       // Internal state.
!       private bool cancel;
! 
!       // Constructors.
!       public CancelEventArgs()
                        {
!                               cancel = false;
                        }
!       public CancelEventArgs(bool cancel)
                        {
!                               this.cancel = cancel;
                        }
!       
!       // Get or set the cancel state.
!       public bool Cancel 
!                       {
!                               get
!                               {
!                                       return cancel;
!                               }
!                               set
!                               {
!                                       cancel = value;
!                               }
!                       }
! 
! }; // class CancelEventArgs
! 
! #endif // CONFIG_COMPONENT_MODEL
  
! }; // namespace System.ComponentModel

Index: CancelEventHandler.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/System/ComponentModel/CancelEventHandler.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** CancelEventHandler.cs       29 May 2003 05:38:17 -0000      1.2
--- CancelEventHandler.cs       16 Sep 2003 22:00:18 -0000      1.3
***************
*** 1,8 ****
  /*
!  * CancelEventHandler.cs - Implementation of 
!  *                                            
"System.ComponentModel.CancelEventHandler" class
   *
!  * Copyright (C) 2002  Southern Storm Software, Pty Ltd.
!  * Copyright (C) 2002  Free Software Foundation, Inc.
   *
   * This program is free software; you can redistribute it and/or modify
--- 1,7 ----
  /*
!  * CancelEventHandler.cs - Implementation of the
!  *                    "System.ComponentModel.CancelEventHandler" class.
   *
!  * Copyright (C) 2003  Southern Storm Software, Pty Ltd.
   *
   * This program is free software; you can redistribute it and/or modify
***************
*** 21,33 ****
   */
  
- using System;
- 
  namespace System.ComponentModel
  {
  #if CONFIG_COMPONENT_MODEL
  
!       [Serializable]
!       public delegate void CancelEventHandler(Object sender, CancelEventArgs 
e);
  
! #endif
! }//namespace
--- 20,31 ----
   */
  
  namespace System.ComponentModel
  {
+ 
  #if CONFIG_COMPONENT_MODEL
  
! public delegate void CancelEventHandler(Object sender, CancelEventArgs e);
! 
! #endif // CONFIG_COMPONENT_MODEL
  
! }; // namespace System.ComponentModel

Index: CollectionChangeEventArgs.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/System/ComponentModel/CollectionChangeEventArgs.cs,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** CollectionChangeEventArgs.cs        29 May 2003 05:38:17 -0000      1.4
--- CollectionChangeEventArgs.cs        16 Sep 2003 22:00:18 -0000      1.5
***************
*** 1,9 ****
  /*
!  * CollectionChangeEventArgs.cs - Implementation of 
!  *                                    
"System.ComponentModel.CollectionChangeEventArgs" class
   *
!  * Copyright (C) 2002  Southern Storm Software, Pty Ltd.
!  * Copyright (C) 2002  Free Software Foundation, Inc.
!  * 
   *
   * This program is free software; you can redistribute it and/or modify
--- 1,7 ----
  /*
!  * CollectionChangeEventArgs.cs - Implementation of the
!  *                    "System.ComponentModel.CollectionChangeEventArgs" class.
   *
!  * Copyright (C) 2003  Southern Storm Software, Pty Ltd.
   *
   * This program is free software; you can redistribute it and/or modify
***************
*** 22,60 ****
   */
  
- 
- using System;
- 
  namespace System.ComponentModel
  {
  #if CONFIG_COMPONENT_MODEL
!       public class CollectionChangeEventArgs: EventArgs
!       {
!               private CollectionChangeAction action;
!               private Object element;
!       
!               public CollectionChangeEventArgs(CollectionChangeAction action, 
!                                               Object element)
!               {
!                       this.action = action;
!                       this.element = element;
!               }
! 
!               public virtual CollectionChangeAction Action 
!               {
!                       get
                        {
!                               return action;
                        }
-               }
  
!               public virtual Object Element 
!               {
!                       get
                        {
!                               return element;
                        }
!               }
  
!       }
! #endif
! }//namespace
--- 20,61 ----
   */
  
  namespace System.ComponentModel
  {
+ 
  #if CONFIG_COMPONENT_MODEL
! 
! public class CollectionChangeEventArgs : EventArgs
! {
!       // Internal state.
!       private CollectionChangeAction action;
!       private Object element;
! 
!       // Constructor.
!       public CollectionChangeEventArgs
!                               (CollectionChangeAction action, Object element)
                        {
!                               this.action = action;
!                               this.element = element;
                        }
  
!       // Get this object's properties.
!       public virtual CollectionChangeAction Action 
                        {
!                               get
!                               {
!                                       return action;
!                               }
                        }
!       public virtual Object Element 
!                       {
!                               get
!                               {
!                                       return element;
!                               }
!                       }
! 
! }; // class CollectionChangeEventArgs
! 
! #endif // CONFIG_COMPONENT_MODEL
  
! }; // namespace System.ComponentModel

Index: CollectionChangeEventHandler.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/System/ComponentModel/CollectionChangeEventHandler.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** CollectionChangeEventHandler.cs     29 May 2003 05:38:17 -0000      1.2
--- CollectionChangeEventHandler.cs     16 Sep 2003 22:00:18 -0000      1.3
***************
*** 1,8 ****
  /*
!  * CollectionChangeEventHandler.cs - Implementation of 
!  *             "System.ComponentModel.CollectionChangeEventHandler" class
   *
!  * Copyright (C) 2002  Southern Storm Software, Pty Ltd.
!  * Copyright (C) 2002  Free Software Foundation, Inc.
   *
   * This program is free software; you can redistribute it and/or modify
--- 1,7 ----
  /*
!  * CollectionChangeEventHandler.cs - Implementation of the
!  *            "System.ComponentModel.CollectionChangeEventHandler" class.
   *
!  * Copyright (C) 2003  Southern Storm Software, Pty Ltd.
   *
   * This program is free software; you can redistribute it and/or modify
***************
*** 21,31 ****
   */
   
- using System;
- 
  namespace System.ComponentModel
  {
  #if CONFIG_COMPONENT_MODEL
!       public delegate void CollectionChangeEventHandler (Object sender,
!                                                       
CollectionChangeEventArgs e);
! #endif                                                        
! }//namespace
--- 20,32 ----
   */
   
  namespace System.ComponentModel
  {
+ 
  #if CONFIG_COMPONENT_MODEL
! 
! public delegate void CollectionChangeEventHandler
!                       (Object sender, CollectionChangeEventArgs e);
! 
! #endif // CONFIG_COMPONENT_MODEL
! 
! }; // namespace System.ComponentModel

Index: DesignOnlyAttribute.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/System/ComponentModel/DesignOnlyAttribute.cs,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** DesignOnlyAttribute.cs      8 Aug 2003 05:52:47 -0000       1.4
--- DesignOnlyAttribute.cs      16 Sep 2003 22:00:18 -0000      1.5
***************
*** 1,8 ****
  /*
!  * DesignOnlyAttribute.cs - Implementation of 
!  *                    "System.ComponentModel.DesignOnlyAttribute" 
   *
!  * Copyright (C) 2002  Southern Storm Software, Pty Ltd.
!  * Copyright (C) 2002  Free Software Foundation,Inc.
   *
   * This program is free software; you can redistribute it and/or modify
--- 1,7 ----
  /*
!  * DesignOnlyAttribute.cs - Implementation of the
!  *                    "System.ComponentModel.DesignOnlyAttribute" class.
   *
!  * Copyright (C) 2003  Southern Storm Software, Pty Ltd.
   *
   * This program is free software; you can redistribute it and/or modify
***************
*** 21,79 ****
   */
   
- using System;
- 
  namespace System.ComponentModel
  {
  #if CONFIG_COMPONENT_MODEL
!       [AttributeUsage(AttributeTargets.All)]
!       public sealed class DesignOnlyAttribute: Attribute
!       {
!               private bool designOnly;
!       
!               public DesignOnlyAttribute(bool designOnly)
!               {
!                       this.designOnly = designOnly;
!               }
! 
!               public static readonly DesignOnlyAttribute No = 
!                                                               new 
DesignOnlyAttribute(false);
! 
!               public static readonly DesignOnlyAttribute Yes =
!                                                               new 
DesignOnlyAttribute(true);
! 
!               public static readonly DesignOnlyAttribute Default = No;
!       
!               public bool IsDesignOnly 
!               {
!                       get
                        {
!                               return designOnly;
                        }
-               }
  
!               public override bool Equals(object obj)
!               {
!                       DesignOnlyAttribute temp = obj as DesignOnlyAttribute;
! 
!                       if (temp != null)
!                       {
!                               return (temp.IsDesignOnly == this.designOnly);
                        }
!                       else 
!                       {
!                               return false;
!                       }
!               }
! 
!               public override int GetHashCode()
!               {
!                       return designOnly.GetHashCode();
!               }
! 
!               public override bool IsDefaultAttribute()
!               {
!                       return Equals(Default);
!               }
!       }
! #endif
! }//namespace
--- 20,85 ----
   */
   
  namespace System.ComponentModel
  {
+ 
  #if CONFIG_COMPONENT_MODEL
! 
! [AttributeUsage(AttributeTargets.All)]
! public sealed class DesignOnlyAttribute : Attribute
! {
!       // Internal state.
!       private bool designOnly;
! 
!       // Pre-defined values.
!       public static readonly DesignOnlyAttribute No =
!                       new DesignOnlyAttribute(false);
!       public static readonly DesignOnlyAttribute Yes =
!                       new DesignOnlyAttribute(true);
!       public static readonly DesignOnlyAttribute Default = No;
! 
!       // Constructor.
!       public DesignOnlyAttribute(bool designOnly)
                        {
!                               this.designOnly = designOnly;
                        }
  
!       // Get this object's value.
!       public bool IsDesignOnly 
!                       {
!                               get
!                               {
!                                       return designOnly;
!                               }
!                       }
! 
!       // Determine if two objects are equal.
!       public override bool Equals(Object obj)
!                       {
!                               DesignOnlyAttribute other = (obj as 
DesignOnlyAttribute);
!                               if(other != null)
!                               {
!                                       return (other.designOnly == designOnly);
!                               }
!                               else 
!                               {
!                                       return false;
!                               }
                        }
! 
!       // Get the hash code for this object.
!       public override int GetHashCode()
!                       {
!                               return designOnly.GetHashCode();
!                       }
! 
!       // Determine if this attribute has the default value.
!       public override bool IsDefaultAttribute()
!                       {
!                               return !designOnly;
!                       }
! 
! }; // class DesignOnlyAttribute
! 
! #endif // CONFIG_COMPONENT_MODEL
! 
! }; // namespace System.ComponentModel

Index: DesignTimeVisibleAttribute.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/System/ComponentModel/DesignTimeVisibleAttribute.cs,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** DesignTimeVisibleAttribute.cs       8 Aug 2003 05:52:47 -0000       1.4
--- DesignTimeVisibleAttribute.cs       16 Sep 2003 22:00:18 -0000      1.5
***************
*** 1,8 ****
  /*
!  * DesignTimeVisibleAttribute.cs - Implementation of 
!  *                            
"System.ComponentModel.DesignTimeVisibleAttribute" 
   *
!  * Copyright (C) 2002  Southern Storm Software, Pty Ltd.
!  * Copyright (C) 2002  Free Software Foundation,Inc.
   *
   * This program is free software; you can redistribute it and/or modify
--- 1,7 ----
  /*
!  * DesignTimeVisibleAttribute.cs - Implementation of the
!  *                    "System.ComponentModel.DesignTimeVisibleAttribute" 
class.
   *
!  * Copyright (C) 2003  Southern Storm Software, Pty Ltd.
   *
   * This program is free software; you can redistribute it and/or modify
***************
*** 21,89 ****
   */
  
- using System;
- 
  namespace System.ComponentModel
  {
  
  #if CONFIG_COMPONENT_MODEL
-       [AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface)]
-       public sealed class DesignTimeVisibleAttribute: Attribute
-       {
-               
-               private bool visible;
- 
-               public DesignTimeVisibleAttribute()
-               {
-                       visible = true;
-               }
  
!               public DesignTimeVisibleAttribute(bool visible)
!               {
!                       this.visible = visible;
!               }
  
!               public override bool Equals(Object value)
!               {
!                       DesignTimeVisibleAttribute temp;
!                       
!                       temp = value as DesignTimeVisibleAttribute;
  
!                       if (temp != null)
                        {
!                               return (temp.Visible == this.visible);
                        }
!                       else
                        {
!                               return false;
                        }
-               }
- 
-               public override int GetHashCode()
-               {
-                       return visible.GetHashCode();
-               }
  
!               public override bool IsDefaultAttribute()
!               {
!                       return Equals(Default);
!               }
! 
!               public static readonly DesignTimeVisibleAttribute Default = Yes;
  
!               public static readonly DesignTimeVisibleAttribute No = 
!                                                               new 
DesignTimeVisibleAttribute(false);
  
!               public static readonly DesignTimeVisibleAttribute Yes =
!                                                               new 
DesignTimeVisibleAttribute(true);
  
!               public bool Visible 
!               {
!                       get
                        {
                                return visible;
                        }
-               }
  
!       }
! #endif
! }//namespace
--- 20,90 ----
   */
  
  namespace System.ComponentModel
  {
  
  #if CONFIG_COMPONENT_MODEL
  
! [AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface)]
! public sealed class DesignTimeVisibleAttribute : Attribute
! {
!       // Internal state.
!       private bool visible;
  
!       // Pre-defined values.
!       public static readonly DesignTimeVisibleAttribute No =
!                       new DesignTimeVisibleAttribute(false);
!       public static readonly DesignTimeVisibleAttribute Yes =
!                       new DesignTimeVisibleAttribute(true);
!       public static readonly DesignTimeVisibleAttribute Default = Yes;
  
!       // Constructors.
!       public DesignTimeVisibleAttribute()
                        {
!                               visible = true;
                        }
!       public DesignTimeVisibleAttribute(bool visible)
                        {
!                               this.visible = visible;
                        }
  
!       // Get this attribute's value.
!       public bool Visible 
!                       {
!                               get
!                               {
!                                       return visible;
!                               }
!                       }
  
!       // Determine if two objects are equal.
!       public override bool Equals(Object value)
!                       {
!                               DesignTimeVisibleAttribute other;
!                               other = (value as DesignTimeVisibleAttribute);
!                               if(other != null)
!                               {
!                                       return (other.visible == visible);
!                               }
!                               else
!                               {
!                                       return false;
!                               }
!                       }
  
!       // Get a hash code for this object.
!       public override int GetHashCode()
!                       {
!                               return visible.GetHashCode();
!                       }
  
!       // Determine if this attribute has the default value.
!       public override bool IsDefaultAttribute()
                        {
                                return visible;
                        }
  
! }; // class DesignTimeVisibleAttribute
! 
! #endif // CONFIG_COMPONENT_MODEL
! 
! }; // namespace System.ComponentModel

Index: DesignerSerializationVisibilityAttribute.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/System/ComponentModel/DesignerSerializationVisibilityAttribute.cs,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** DesignerSerializationVisibilityAttribute.cs 8 Aug 2003 05:52:47 -0000       
1.4
--- DesignerSerializationVisibilityAttribute.cs 16 Sep 2003 22:00:18 -0000      
1.5
***************
*** 1,8 ****
  /*
!  * DesignerSerializationVisibilityAttribute.cs - Implementation of 
!  *    "System.ComponentModel.DesignerSerializationVisibilityAttribute" 
   *
!  * Copyright (C) 2002  Southern Storm Software, Pty Ltd.
!  * Copyright (C) 2002  Free Software Foundation,Inc.
   *
   * This program is free software; you can redistribute it and/or modify
--- 1,7 ----
  /*
!  * DesignerSerializationVisibilityAttribute.cs - Implementation of the
!  *    "System.ComponentModel.DesignerSerializationVisibilityAttribute" class.
   *
!  * Copyright (C) 2003  Southern Storm Software, Pty Ltd.
   *
   * This program is free software; you can redistribute it and/or modify
***************
*** 21,90 ****
   */
  
- using System;
- 
  namespace System.ComponentModel
  {
  #if CONFIG_COMPONENT_MODEL || CONFIG_EXTENDED_DIAGNOSTICS
!       [AttributeUsage(AttributeTargets.Method | AttributeTargets.Property)]
!       public sealed class DesignerSerializationVisibilityAttribute: Attribute
!       {
!               private DesignerSerializationVisibility vis;
! 
!               public DesignerSerializationVisibilityAttribute(
!                                                       
DesignerSerializationVisibility vis)
!               {
!                       this.vis = vis;
!               }
! 
!               public static readonly DesignerSerializationVisibilityAttribute 
!                       Content = new DesignerSerializationVisibilityAttribute(
!                                                               
DesignerSerializationVisibility.Content);
! 
!               public static readonly DesignerSerializationVisibilityAttribute 
!                       Hidden = new DesignerSerializationVisibilityAttribute(
!                                                               
DesignerSerializationVisibility.Hidden);
! 
!               public static readonly DesignerSerializationVisibilityAttribute 
!                       Visible = new DesignerSerializationVisibilityAttribute(
!                                                               
DesignerSerializationVisibility.Visible);
! 
!               public static readonly DesignerSerializationVisibilityAttribute 
!                       Default = Visible;
!  
!               public DesignerSerializationVisibility Visibility 
!               {
!                       get
                        {
!                               return vis;
                        }
-               }
  
!               public override bool Equals(object obj)
!               {
!                       DesignerSerializationVisibilityAttribute temp;
  
!                       temp = (obj as 
DesignerSerializationVisibilityAttribute);
  
!                       if (temp != null)
                        {
!                               return (temp.Visibility == this.vis);
                        }
!                       else
                        {
!                               return false;
                        }
-               }
  
!               public override int GetHashCode()
!               {
!                       return vis.GetHashCode();
!               }
! 
!               public override bool IsDefaultAttribute()
!               {
!                       return Equals(Default);
!               }
! 
!       }
! #endif        
! }//namespace
--- 20,93 ----
   */
  
  namespace System.ComponentModel
  {
+ 
  #if CONFIG_COMPONENT_MODEL || CONFIG_EXTENDED_DIAGNOSTICS
! 
! [AttributeUsage(AttributeTargets.Method | AttributeTargets.Property)]
! public sealed class DesignerSerializationVisibilityAttribute : Attribute
! {
!       // Internal state.
!       private DesignerSerializationVisibility vis;
! 
!       // Pre-defined values.
!       public static readonly DesignerSerializationVisibilityAttribute Content 
=
!                       new DesignerSerializationVisibilityAttribute
!                               (DesignerSerializationVisibility.Content);
!       public static readonly DesignerSerializationVisibilityAttribute Hidden =
!                       new DesignerSerializationVisibilityAttribute
!                               (DesignerSerializationVisibility.Hidden);
!       public static readonly DesignerSerializationVisibilityAttribute Visible 
=
!                       new DesignerSerializationVisibilityAttribute
!                               (DesignerSerializationVisibility.Visible);
!       public static readonly DesignerSerializationVisibilityAttribute Default 
=
!                       Visible;
! 
!       // Constructor.
!       public DesignerSerializationVisibilityAttribute
!                               (DesignerSerializationVisibility vis)
                        {
!                               this.vis = vis;
                        }
  
!       // Get this attribute's value.
!       public DesignerSerializationVisibility Visibility 
!                       {
!                               get
!                               {
!                                       return vis;
!                               }
!                       }
  
!       // Determine if two objects are equal.
!       public override bool Equals(object obj)
!                       {
!                               DesignerSerializationVisibilityAttribute other;
!                               other = (obj as 
DesignerSerializationVisibilityAttribute);
!                               if(other != null)
!                               {
!                                       return (other.vis == vis);
!                               }
!                               else
!                               {
!                                       return false;
!                               }
!                       }
  
!       // Get a hash code for this object.
!       public override int GetHashCode()
                        {
!                               return vis.GetHashCode();
                        }
! 
!       // Determine if this attribute corresponds to the default value.
!       public override bool IsDefaultAttribute()
                        {
!                               return (vis == 
DesignerSerializationVisibility.Visible);
                        }
  
! }; // class DesignerSerializationVisibilityAttribute
! 
! #endif // CONFIG_COMPONENT_MODEL
! 
! }; // namespace System.ComponentModel

Index: ICustomTypeDescriptor.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/System/ComponentModel/ICustomTypeDescriptor.cs,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** ICustomTypeDescriptor.cs    29 May 2003 05:38:17 -0000      1.3
--- ICustomTypeDescriptor.cs    16 Sep 2003 22:00:18 -0000      1.4
***************
*** 1,8 ****
  /*
!  * ICustomTypeDescriptor.cs - Implementation of 
!  *                                    
"System.ComponentModel.ICustomTypeDescriptor" 
   *
!  * Copyright (C) 2002  Southern Storm Software, Pty Ltd.
!  * Copyright (C) 2002  Free Software Foundation,Inc.
   *
   * This program is free software; you can redistribute it and/or modify
--- 1,7 ----
  /*
!  * ICustomTypeDescriptor.cs - Implementation of the
!  *                    "System.ComponentModel.ICustomTypeDescriptor" class.
   *
!  * Copyright (C) 2003  Southern Storm Software, Pty Ltd.
   *
   * This program is free software; you can redistribute it and/or modify
***************
*** 21,56 ****
   */
  
- using System;
- 
  namespace System.ComponentModel
  {
  #if CONFIG_COMPONENT_MODEL
-       public interface ICustomTypeDescriptor
-       {
-               AttributeCollection GetAttributes();
  
!               String GetClassName();
  
!               String GetComponentName();
  
!               TypeConverter GetConverter();
  
!               EventDescriptor GetDefaultEvent();
  
!               PropertyDescriptor GetDefaultProperty();
  
!               Object GetEditor(System.Type editorBaseType);
  
!               EventDescriptorCollection GetEvents();
!               
!               EventDescriptorCollection GetEvents(Attribute[] arr);
  
!               PropertyDescriptorCollection GetProperties();
!               
!               PropertyDescriptorCollection GetProperties(Attribute[] arr);
  
!               Object GetPropertyOwner(PropertyDescriptor pd);
  
!       }
! #endif        
! }//namespace
--- 20,65 ----
   */
  
  namespace System.ComponentModel
  {
+ 
  #if CONFIG_COMPONENT_MODEL
  
! public interface ICustomTypeDescriptor
! {
!       // Return the attribute collection for this object.
!       AttributeCollection GetAttributes();
! 
!       // Get the class name for this object.
!       String GetClassName();
! 
!       // Get the component name for this object.
!       String GetComponentName();
! 
!       // Get the type converter associated with this object.
!       TypeConverter GetConverter();
  
!       // Get the default event for this object.
!       EventDescriptor GetDefaultEvent();
  
!       // Get the default property for this object.
!       PropertyDescriptor GetDefaultProperty();
  
!       // Get an editor of the specified type for this object.
!       Object GetEditor(System.Type editorBaseType);
  
!       // Get the events for this object.
!       EventDescriptorCollection GetEvents();
!       EventDescriptorCollection GetEvents(Attribute[] arr);
  
!       // Get the properties for this object.
!       PropertyDescriptorCollection GetProperties();
!       PropertyDescriptorCollection GetProperties(Attribute[] arr);
  
!       // Get the object that owns a particular property.
!       Object GetPropertyOwner(PropertyDescriptor pd);
  
! }; // interface ICustomTypeDescriptor
  
! #endif // CONFIG_COMPONENT_MODEL
  
! }; // namespace System.ComponentModel

Index: IDataErrorInfo.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/System/ComponentModel/IDataErrorInfo.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** IDataErrorInfo.cs   29 May 2003 05:38:17 -0000      1.2
--- IDataErrorInfo.cs   16 Sep 2003 22:00:18 -0000      1.3
***************
*** 1,7 ****
  /*
!  * IDataErrorInfo.cs - Implementation of 
"System.ComponentModel.IDataErrorInfo" 
   *
!  * Copyright (C) 2002  Southern Storm Software, Pty Ltd.
!  * Copyright (C) 2002  Free Software Foundation,Inc.
   *
   * This program is free software; you can redistribute it and/or modify
--- 1,7 ----
  /*
!  * IDataErrorInfo.cs - Implementation of the
!  *                    "System.ComponentModel.IDataErrorInfo" class.
   *
!  * Copyright (C) 2003  Southern Storm Software, Pty Ltd.
   *
   * This program is free software; you can redistribute it and/or modify
***************
*** 20,35 ****
   */
  
- using System;
- 
  namespace System.ComponentModel
  {
  #if CONFIG_COMPONENT_MODEL
!       public interface IDataErrorInfo
!       {
!               String Error { get; }
! 
!               String this[String columnName] { get; }
! 
!       }
! #endif        
! }//namespace
--- 20,39 ----
   */
  
  namespace System.ComponentModel
  {
+ 
  #if CONFIG_COMPONENT_MODEL
! 
! public interface IDataErrorInfo
! {
!       // Get an error message that indicates what is wrong with an object.
!       String Error { get; }
! 
!       // Get the error message associated with a particular name.
!       String this[String columnName] { get; }
! 
! }; // interface IDataErrorInfo
! 
! #endif // CONFIG_COMPONENT_MODEL
! 
! }; // namespace System.ComponentModel

Index: IEditableObject.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/System/ComponentModel/IEditableObject.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** IEditableObject.cs  29 May 2003 05:38:17 -0000      1.2
--- IEditableObject.cs  16 Sep 2003 22:00:18 -0000      1.3
***************
*** 1,8 ****
  /*
!  * IEditableObject.cs - Implementation of 
!  *                                                    
"System.ComponentModel.IEditableObject" 
   *
!  * Copyright (C) 2002  Southern Storm Software, Pty Ltd.
!  * Copyright (C) 2002  Free Software Foundation,Inc.
   *
   * This program is free software; you can redistribute it and/or modify
--- 1,7 ----
  /*
!  * IEditableObject.cs - Implementation of the
!  *                    "System.ComponentModel.IEditableObject" class.
   *
!  * Copyright (C) 2003  Southern Storm Software, Pty Ltd.
   *
   * This program is free software; you can redistribute it and/or modify
***************
*** 21,39 ****
   */
  
- using System;
- 
  namespace System.ComponentModel
  {
  #if CONFIG_COMPONENT_MODEL
!       public interface IEditableObject
!       {
!               
!               void BeginEdit();
!               
!               void CancelEdit();
! 
!               void EndEdit();
! 
!       }
! #endif        
! }//namespace
--- 20,42 ----
   */
  
  namespace System.ComponentModel
  {
+ 
  #if CONFIG_COMPONENT_MODEL
! 
! public interface IEditableObject
! {
!       // Begin an edit operation on an object.
!       void BeginEdit();
! 
!       // Discard all changes since the last call to "BeginEdit".
!       void CancelEdit();
! 
!       // Flush pending edit changes to the underlying object.
!       void EndEdit();
! 
! }; // interface IEditableObject
! 
! #endif // CONFIG_COMPONENT_MODEL
! 
! }; // namespace System.ComponentModel

Index: IExtenderProvider.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/System/ComponentModel/IExtenderProvider.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** IExtenderProvider.cs        29 May 2003 05:38:17 -0000      1.2
--- IExtenderProvider.cs        16 Sep 2003 22:00:18 -0000      1.3
***************
*** 1,8 ****
  /*
!  * IExtenderProvider.cs - Implementation of 
!  *                                                    
"System.ComponentModel.IExtenderProvider" 
   *
!  * Copyright (C) 2002  Southern Storm Software, Pty Ltd.
!  * Copyright (C) 2002  Free Software Foundation,Inc.
   *
   * This program is free software; you can redistribute it and/or modify
--- 1,7 ----
  /*
!  * IExtenderProvider.cs - Implementation of the
!  *                    "System.ComponentModel.IExtenderProvider" class.
   *
!  * Copyright (C) 2003  Southern Storm Software, Pty Ltd.
   *
   * This program is free software; you can redistribute it and/or modify
***************
*** 21,33 ****
   */
  
- using System;
- 
  namespace System.ComponentModel
  {
  #if CONFIG_COMPONENT_MODEL
!       public interface IExtenderProvider
!       {
!               bool CanExtend(Object extendee);
!       }
! #endif        
! }//namespace
--- 20,36 ----
   */
  
  namespace System.ComponentModel
  {
+ 
  #if CONFIG_COMPONENT_MODEL
! 
! public interface IExtenderProvider
! {
!       // Determine if this object can extend its properties to "extendee".
!       bool CanExtend(Object extendee);
! 
! }; // interface IExtenderProvider
! 
! #endif // CONFIG_COMPONENT_MODEL
! 
! }; // namespace System.ComponentModel

Index: IListSource.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/System/ComponentModel/IListSource.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** IListSource.cs      29 May 2003 05:38:17 -0000      1.2
--- IListSource.cs      16 Sep 2003 22:00:18 -0000      1.3
***************
*** 1,7 ****
  /*
!  * IListSource.cs - Implementation of "System.ComponentModel.IListSource" 
   *
!  * Copyright (C) 2002  Southern Storm Software, Pty Ltd.
!  * Copyright (C) 2002  Free Software Foundation,Inc.
   *
   * This program is free software; you can redistribute it and/or modify
--- 1,7 ----
  /*
!  * IListSource.cs - Implementation of the
!  *                    "System.ComponentModel.IListSource" class.
   *
!  * Copyright (C) 2003  Southern Storm Software, Pty Ltd.
   *
   * This program is free software; you can redistribute it and/or modify
***************
*** 20,36 ****
   */
  
- using System;
- using System.Collections;
- 
  namespace System.ComponentModel
  {
  #if CONFIG_COMPONENT_MODEL
!       public interface IListSource
!       {
!               IList GetList();
!               
!               bool ContainsListCollection { get; }
! 
!       }
! #endif        
! }//namespace
--- 20,41 ----
   */
  
  namespace System.ComponentModel
  {
+ 
  #if CONFIG_COMPONENT_MODEL
! 
! using System.Collections;
! 
! public interface IListSource
! {
!       // Determine if this collection contains lists of its own.
!       bool ContainsListCollection { get; }
! 
!       // Return a list that can be bound to a data source for this object.
!       IList GetList();
!       
! }; // interface IListSource
! 
! #endif // CONFIG_COMPONENT_MODEL
! 
! }; // namespace System.ComponentModel

Index: ISupportInitialize.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/System/ComponentModel/ISupportInitialize.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** ISupportInitialize.cs       29 May 2003 05:38:17 -0000      1.2
--- ISupportInitialize.cs       16 Sep 2003 22:00:18 -0000      1.3
***************
*** 1,8 ****
  /*
!  * ISupportInitialize.cs - Implementation of 
!  *                                                    
"System.ComponentModel.ISupportInitialize" 
   *
!  * Copyright (C) 2002  Southern Storm Software, Pty Ltd.
!  * Copyright (C) 2002  Free Software Foundation,Inc.
   *
   * This program is free software; you can redistribute it and/or modify
--- 1,7 ----
  /*
!  * ISupportInitialize.cs - Implementation of the
!  *                    "System.ComponentModel.ISupportInitialize" class.
   *
!  * Copyright (C) 2003  Southern Storm Software, Pty Ltd.
   *
   * This program is free software; you can redistribute it and/or modify
***************
*** 21,34 ****
   */
   
- using System;
- 
  namespace System.ComponentModel
  {
  #if CONFIG_COMPONENT_MODEL
!       public interface ISupportInitialize
!       {
!               void BeginInit();
!               void EndInit();
!       }
! #endif        
! }//namespace
--- 20,39 ----
   */
   
  namespace System.ComponentModel
  {
+ 
  #if CONFIG_COMPONENT_MODEL
! 
! public interface ISupportInitialize
! {
!       // Signal the object that initialization is starting.
!       void BeginInit();
! 
!       // Signal the object that initialization is ending.
!       void EndInit();
! 
! }; // interface ISupportInitialize
! 
! #endif // CONFIG_COMPONENT_MODEL
! 
! }; // namespace System.ComponentModel

Index: ISynchronizeInvoke.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/System/ComponentModel/ISynchronizeInvoke.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** ISynchronizeInvoke.cs       29 May 2003 05:38:17 -0000      1.2
--- ISynchronizeInvoke.cs       16 Sep 2003 22:00:18 -0000      1.3
***************
*** 1,8 ****
  /*
!  * ISynchronizeInvoke.cs - Implementation of 
!  *                                                    
"System.ComponentModel.ISynchronizeInvoke" 
   *
!  * Copyright (C) 2002  Southern Storm Software, Pty Ltd.
!  * Copyright (C) 2002  Free Software Foundation.
   *
   * This program is free software; you can redistribute it and/or modify
--- 1,7 ----
  /*
!  * ISynchronizeInvoke.cs - Implementation of the
!  *                    "System.ComponentModel.ISynchronizeInvoke" class.
   *
!  * Copyright (C) 2003  Southern Storm Software, Pty Ltd.
   *
   * This program is free software; you can redistribute it and/or modify
***************
*** 21,41 ****
   */
  
- using System;
- 
  namespace System.ComponentModel
  {
  #if CONFIG_COMPONENT_MODEL
!       public interface ISynchronizeInvoke
!       {
!               
!               IAsyncResult BeginInvoke(Delegate method, Object[] args);
!       
!               Object EndInvoke(IAsyncResult result);
!       
!               Object Invoke(Delegate method, Object[] args);
! 
!               bool InvokeRequired { get; }
! 
!       }
! #endif        
! }//namespace
--- 20,46 ----
   */
  
  namespace System.ComponentModel
  {
+ 
  #if CONFIG_COMPONENT_MODEL
! 
! public interface ISynchronizeInvoke
! {
!       // Determine if a caller should use "Invoke" on this object.
!       bool InvokeRequired { get; }
! 
!       // Invoke a delegate on the thread that this object belongs to.
!       IAsyncResult BeginInvoke(Delegate method, Object[] args);
! 
!       // End a previous invocation and return the results.
!       Object EndInvoke(IAsyncResult result);
! 
!       // Invoke a delegate on the thread that this object belongs to
!       // and wait for the method to complete.
!       Object Invoke(Delegate method, Object[] args);
! 
! }; // interface ISynchronizeInvoke
! 
! #endif // CONFIG_COMPONENT_MODEL
! 
! }; // namespace System.ComponentModel

Index: ITypedList.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/System/ComponentModel/ITypedList.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** ITypedList.cs       29 May 2003 05:38:17 -0000      1.2
--- ITypedList.cs       16 Sep 2003 22:00:18 -0000      1.3
***************
*** 1,7 ****
  /*
!  * ITypedList.cs - Implementation of "System.ComponentModel.ITypedList" 
   *
!  * Copyright (C) 2002  Southern Storm Software, Pty Ltd.
!  * Copyright (C) 2002  Free Software Foundation,Inc.
   *
   * This program is free software; you can redistribute it and/or modify
--- 1,7 ----
  /*
!  * ITypedList.cs - Implementation of the
!  *                    "System.ComponentModel.ITypedList" class.
   *
!  * Copyright (C) 2003  Southern Storm Software, Pty Ltd.
   *
   * This program is free software; you can redistribute it and/or modify
***************
*** 20,36 ****
   */
  
- using System;
- 
  namespace System.ComponentModel
  {
  #if CONFIG_COMPONENT_MODEL
!       public interface ITypedList
!       {
!               PropertyDescriptorCollection GetItemProperties(
!                                                                       
PropertyDescriptor[] listAccessors);
! 
!               String GetListName(PropertyDescriptor[] listAccessors);
! 
!       }
! #endif        
! }//namespace
--- 20,40 ----
   */
  
  namespace System.ComponentModel
  {
+ 
  #if CONFIG_COMPONENT_MODEL
! 
! public interface ITypedList
! {
!       // Get a list of properties that can be used to bind data to this 
object.
!       PropertyDescriptorCollection GetItemProperties
!                       (PropertyDescriptor[] listAccessors);
! 
!       // Get the name of a property list.
!       String GetListName(PropertyDescriptor[] listAccessors);
! 
! }; // interface ITypedList
! 
! #endif // CONFIG_COMPONENT_MODEL
! 
! }; // namespace System.ComponentModel

Index: ListChangedEventHandler.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/System/ComponentModel/ListChangedEventHandler.cs,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** ListChangedEventHandler.cs  30 May 2003 01:35:46 -0000      1.3
--- ListChangedEventHandler.cs  16 Sep 2003 22:00:18 -0000      1.4
***************
*** 1,8 ****
  /*
!  * ListChangedEventHandler.cs - Implementation of 
!  *                                                            
"System.ComponentModel.ListChangedEventHandler" 
   *
!  * Copyright (C) 2002  Southern Storm Software, Pty Ltd.
!  * Copyright (C) 2002  Free Software Foundation,Inc.
   *
   * This program is free software; you can redistribute it and/or modify
--- 1,7 ----
  /*
!  * ListChangedEventHandler.cs - Implementation of the
!  *                    "System.ComponentModel.ListChangedEventHandler" class.
   *
!  * Copyright (C) 2003  Southern Storm Software, Pty Ltd.
   *
   * This program is free software; you can redistribute it and/or modify
***************
*** 21,30 ****
   */
  
- using System;
- 
  namespace System.ComponentModel
  {
  #if CONFIG_COMPONENT_MODEL
!       public delegate void ListChangedEventHandler (Object 
sender,ListChangedEventArgs e);
! #endif
! }//namespace
--- 20,32 ----
   */
  
  namespace System.ComponentModel
  {
+ 
  #if CONFIG_COMPONENT_MODEL
! 
! public delegate void ListChangedEventHandler
!                       (Object sender, ListChangedEventArgs e);
! 
! #endif // CONFIG_COMPONENT_MODEL
! 
! }; // namespace System.ComponentModel

Index: PropertyChangedEventArgs.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/System/ComponentModel/PropertyChangedEventArgs.cs,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** PropertyChangedEventArgs.cs 29 May 2003 05:38:17 -0000      1.4
--- PropertyChangedEventArgs.cs 16 Sep 2003 22:00:18 -0000      1.5
***************
*** 1,8 ****
  /*
!  * PropertyChangedEventArgs.cs - Implementation of 
!  *                                            
"System.ComponentModel.PropertyChangedEventArgs" 
   *
!  * Copyright (C) 2002  Southern Storm Software, Pty Ltd.
!  * Copyright (C) 2002  Free Software Foundation,Inc.
   *
   * This program is free software; you can redistribute it and/or modify
--- 1,7 ----
  /*
!  * PropertyChangedEventArgs.cs - Implementation of the
!  *                    "System.ComponentModel.PropertyChangedEventArgs" class.
   *
!  * Copyright (C) 2003  Southern Storm Software, Pty Ltd.
   *
   * This program is free software; you can redistribute it and/or modify
***************
*** 21,47 ****
   */
  
- using System;
- 
  namespace System.ComponentModel
  {
  #if CONFIG_COMPONENT_MODEL
!       public class PropertyChangedEventArgs: EventArgs
!       {
!               private string name;
!       
!               public PropertyChangedEventArgs(String name)
!               {
!                       this.name = name;
!               }
! 
!               public virtual String PropertyName 
!               {
!                       get
                        {
!                               return name;
                        }
-               }
  
!       }
! #endif        
! }//namespace
--- 20,51 ----
   */
  
  namespace System.ComponentModel
  {
+ 
  #if CONFIG_COMPONENT_MODEL
! 
! public class PropertyChangedEventArgs : EventArgs
! {
!       // Internal state.
!       private String name;
! 
!       // Constructor.
!       public PropertyChangedEventArgs(String name)
                        {
!                               this.name = name;
                        }
  
!       // Get this object's value.
!       public virtual String PropertyName 
!                       {
!                               get
!                               {
!                                       return name;
!                               }
!                       }
! 
! }; // class PropertyChangedEventArgs
! 
! #endif // CONFIG_COMPONENT_MODEL
! 
! }; // namespace System.ComponentModel

Index: PropertyChangedEventHandler.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/System/ComponentModel/PropertyChangedEventHandler.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** PropertyChangedEventHandler.cs      29 May 2003 05:38:17 -0000      1.2
--- PropertyChangedEventHandler.cs      16 Sep 2003 22:00:18 -0000      1.3
***************
*** 1,8 ****
  /*
!  * PropertyChangedEventHandler.cs - Implementation of 
!  *                                            
"System.ComponentModel.PropertyChangedEventHandler" 
   *
!  * Copyright (C) 2002  Southern Storm Software, Pty Ltd.
!  * Copyright (C) 2002  Free Software Foundation,Inc.
   *
   * This program is free software; you can redistribute it and/or modify
--- 1,7 ----
  /*
!  * PropertyChangedEventHandler.cs - Implementation of the
!  *                    "System.ComponentModel.PropertyChangedEventHandler" 
class.
   *
!  * Copyright (C) 2003  Southern Storm Software, Pty Ltd.
   *
   * This program is free software; you can redistribute it and/or modify
***************
*** 21,31 ****
   */
  
- using System;
- 
  namespace System.ComponentModel
  {
  #if CONFIG_COMPONENT_MODEL
!       public delegate void PropertyChangedEventHandler( Object sender,
!               PropertyChangedEventArgs e);
! #endif                
! }//namespace
--- 20,31 ----
   */
  
  namespace System.ComponentModel
  {
  #if CONFIG_COMPONENT_MODEL
! 
! public delegate void PropertyChangedEventHandler
!                       (Object sender, PropertyChangedEventArgs e);
! 
! #endif // CONFIG_COMPONENT_MODEL
! 
! }; // namespace System.ComponentModel

Index: RefreshEventArgs.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/System/ComponentModel/RefreshEventArgs.cs,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** RefreshEventArgs.cs 29 May 2003 05:38:17 -0000      1.4
--- RefreshEventArgs.cs 16 Sep 2003 22:00:18 -0000      1.5
***************
*** 1,8 ****
  /*
!  * RefreshEventArgs.cs - Implementation of 
!  *                                                    
"System.ComponentModel.RefreshEventArgs" 
   *
!  * Copyright (C) 2002  Southern Storm Software, Pty Ltd.
!  * Copyright (C) 2002  Free Software Foundation,Inc.
   *
   * This program is free software; you can redistribute it and/or modify
--- 1,7 ----
  /*
!  * RefreshEventArgs.cs - Implementation of the
!  *                    "System.ComponentModel.RefreshEventArgs" class.
   *
!  * Copyright (C) 2003  Southern Storm Software, Pty Ltd.
   *
   * This program is free software; you can redistribute it and/or modify
***************
*** 21,61 ****
   */
  
- using System;
- 
  namespace System.ComponentModel
  {
  #if CONFIG_COMPONENT_MODEL
!       public class RefreshEventArgs: EventArgs
!       {
!               private Object componentChanged;
!               private Type typeChanged;
! 
!               public RefreshEventArgs(Object componentChanged)
!               {
!                       this.componentChanged = componentChanged;
!               }
! 
!               public RefreshEventArgs(Type typeChanged)
!               {
!                       this.typeChanged = typeChanged;
!               }
! 
!               public Object ComponentChanged 
!               {
!                       get
                        {
!                               return componentChanged;
                        }
-               }
  
!               public Type TypeChanged 
!               {
!                       get
                        {
!                               return typeChanged;
                        }
-               }
  
!       }
! #endif        
! }//namespace
--- 20,63 ----
   */
  
  namespace System.ComponentModel
  {
+ 
  #if CONFIG_COMPONENT_MODEL
! 
! public class RefreshEventArgs : EventArgs
! {
!       // Internal state.
!       private Object componentChanged;
!       private Type typeChanged;
! 
!       // Constructors.
!       public RefreshEventArgs(Object componentChanged)
                        {
!                               this.componentChanged = componentChanged;
!                       }
!       public RefreshEventArgs(Type typeChanged)
!                       {
!                               this.typeChanged = typeChanged;
                        }
  
!       // Get this object's properties.
!       public Object ComponentChanged 
!                       {
!                               get
!                               {
!                                       return componentChanged;
!                               }
!                       }
!       public Type TypeChanged 
                        {
!                               get
!                               {
!                                       return typeChanged;
!                               }
                        }
  
! }; // class RefreshEventArgs
! 
! #endif // CONFIG_COMPONENT_MODEL
! 
! }; // namespace System.ComponentModel

Index: RefreshEventHandler.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/System/ComponentModel/RefreshEventHandler.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** RefreshEventHandler.cs      29 May 2003 05:38:17 -0000      1.2
--- RefreshEventHandler.cs      16 Sep 2003 22:00:18 -0000      1.3
***************
*** 1,8 ****
  /*
!  * RefreshEventHandler.cs - Implementation of 
!  *                                                    
"System.ComponentModel.RefreshEventHandler" 
   *
!  * Copyright (C) 2002  Southern Storm Software, Pty Ltd.
!  * Copyright (C) 2002  Free Software Foundation,Inc.
   *
   * This program is free software; you can redistribute it and/or modify
--- 1,7 ----
  /*
!  * RefreshEventHandler.cs - Implementation of the
!  *                    "System.ComponentModel.RefreshEventHandler" class.
   *
!  * Copyright (C) 2003  Southern Storm Software, Pty Ltd.
   *
   * This program is free software; you can redistribute it and/or modify
***************
*** 21,30 ****
   */
  
- using System;
- 
  namespace System.ComponentModel
  {
  #if CONFIG_COMPONENT_MODEL
!       public delegate void RefreshEventHandler(RefreshEventArgs e);
! #endif        
! }//namespace
--- 20,31 ----
   */
  
  namespace System.ComponentModel
  {
+ 
  #if CONFIG_COMPONENT_MODEL
! 
! public delegate void RefreshEventHandler(RefreshEventArgs e);
! 
! #endif // CONFIG_COMPONENT_MODEL
! 
! }; // namespace System.ComponentModel

Index: Win32Exception.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/System/ComponentModel/Win32Exception.cs,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -r1.9 -r1.10
*** Win32Exception.cs   12 Sep 2003 06:08:58 -0000      1.9
--- Win32Exception.cs   16 Sep 2003 22:00:18 -0000      1.10
***************
*** 1,7 ****
  /*
!  * Win32Exception.cs - Implementation of 
"System.ComponentModel.Win32Exception" 
   *
!  * Copyright (C) 2002, 2003  Southern Storm Software, Pty Ltd.
!  * Copyright (C) 2002  Free Software Foundation,Inc.
   *
   * This program is free software; you can redistribute it and/or modify
--- 1,7 ----
  /*
!  * Win32Exception.cs - Implementation of the
!  *                    "System.ComponentModel.Win32Exception" class.
   *
!  * Copyright (C) 2003  Southern Storm Software, Pty Ltd.
   *
   * This program is free software; you can redistribute it and/or modify
***************
*** 20,87 ****
   */
  
! using System;
  using System.Security;
  using System.Runtime.InteropServices;
  using System.Runtime.Serialization;
  
! namespace System.ComponentModel
  {
! #if !ECMA_COMPAT
!       [Serializable]
!       [SuppressUnmanagedCodeSecurity]
!       public class Win32Exception: ExternalException
!       {
!               private int nativeErrorCode;
! 
!               public Win32Exception() : base()
!               {
!                       HResult = unchecked((int)0x80004005);
!               }
!               public Win32Exception(int error) : base()
!               {
!                       nativeErrorCode = error;
!                       HResult = unchecked((int)0x80004005);
!               }
!               public Win32Exception(int error, String message) : base(message)
!               {
!                       nativeErrorCode = error;
!                       HResult = unchecked((int)0x80004005);
!               }
!               internal Win32Exception(String message) : base (message)
!               {
!                       HResult = unchecked((int)0x80004005);
!               }
!               internal Win32Exception(String message,Exception inner) 
!                       : base (message,inner)
!               {
!                       HResult = unchecked((int)0x80004005);
!               }
  #if CONFIG_SERIALIZATION
!               protected Win32Exception(SerializationInfo info,
!                                                                
StreamingContext context)
                        : base(info, context)
!               {
!                       nativeErrorCode = info.GetInt32("NativeErrorCode");
!               }
  #endif
  
!               public int NativeErrorCode 
!               {
!                       get
                        {
!                               return nativeErrorCode;
                        }
-               }
  
  #if CONFIG_SERIALIZATION
!               public override void GetObjectData(SerializationInfo info,
!                                                                               
   StreamingContext context)
!               {
!                       base.GetObjectData(info, context);
!                       info.AddValue("NativeErrorCode", nativeErrorCode);
!               }
  #endif
  
!       }
! #endif        
! }//namespace
--- 20,95 ----
   */
  
! namespace System.ComponentModel
! {
! 
! #if !ECMA_COMPAT
! 
  using System.Security;
  using System.Runtime.InteropServices;
  using System.Runtime.Serialization;
  
! [Serializable]
! [SuppressUnmanagedCodeSecurity]
! public class Win32Exception : ExternalException
  {
!       // Internal state.
!       private int error;
! 
!       // Constructors.
!       public Win32Exception() : base()
!                       {
!                               HResult = unchecked((int)0x80004005);
!                       }
!       public Win32Exception(int error) : base()
!                       {
!                               this.error = error;
!                               HResult = unchecked((int)0x80004005);
!                       }
!       public Win32Exception(int error, String message) : base(message)
!                       {
!                               this.error = error;
!                               HResult = unchecked((int)0x80004005);
!                       }
!       internal Win32Exception(String message) : base(message)
!                       {
!                               HResult = unchecked((int)0x80004005);
!                       }
!       internal Win32Exception(String message, Exception inner) 
!                       : base(message,inner)
!                       {
!                               HResult = unchecked((int)0x80004005);
!                       }
  #if CONFIG_SERIALIZATION
!       protected Win32Exception(SerializationInfo info, StreamingContext 
context)
                        : base(info, context)
!                       {
!                               error = info.GetInt32("NativeErrorCode");
!                       }
  #endif
  
!       // Get the native error code corresponding to this exception.
!       public int NativeErrorCode 
                        {
!                               get
!                               {
!                                       return error;
!                               }
                        }
  
  #if CONFIG_SERIALIZATION
! 
!       // Get serialization data for this object.
!       public override void GetObjectData
!                               (SerializationInfo info, StreamingContext 
context)
!                       {
!                               base.GetObjectData(info, context);
!                               info.AddValue("NativeErrorCode", error);
!                       }
! 
  #endif
  
! }; // class Win32Exception
! 
! #endif // !ECMA_COMPAT
! 
! }; // namespace System.ComponentModel





reply via email to

[Prev in Thread] Current Thread [Next in Thread]