[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: pnetlib/System.Windows.Forms CancelEventArgs.
From: |
Rhys Weatherley <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnetlib/System.Windows.Forms CancelEventArgs.cs, 1.1, 1.2 CancelEventHandler.cs, 1.2, 1.3 |
Date: |
Tue, 16 Sep 2003 18:00:21 -0400 |
Update of /cvsroot/dotgnu-pnet/pnetlib/System.Windows.Forms
In directory subversions:/tmp/cvs-serv8330/System.Windows.Forms
Modified Files:
CancelEventArgs.cs CancelEventHandler.cs
Log Message:
Rewrite some "System.ComponentModel" classes and improve consistency.
Index: CancelEventArgs.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/System.Windows.Forms/CancelEventArgs.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** CancelEventArgs.cs 17 Jun 2003 11:55:49 -0000 1.1
--- CancelEventArgs.cs 16 Sep 2003 22:00:18 -0000 1.2
***************
*** 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,63 ****
*/
- using System;
-
namespace System.ComponentModel
{
- // Replaces the missing "CancelEventArgs" class when no component model.
-
#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
--- 20,59 ----
*/
namespace System.ComponentModel
{
#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.Windows.Forms/CancelEventHandler.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** CancelEventHandler.cs 13 Aug 2003 01:21:41 -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,35 ****
*/
- using System;
-
namespace System.ComponentModel
{
#if !CONFIG_COMPONENT_MODEL
- #if !ECMA_COMPAT
- [Serializable]
- #endif
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnetlib/System.Windows.Forms CancelEventArgs.cs, 1.1, 1.2 CancelEventHandler.cs, 1.2, 1.3,
Rhys Weatherley <address@hidden> <=
- Prev by Date:
[Dotgnu-pnet-commits] CVS: pnetlib/System/ComponentModel ArrayConverter.cs, NONE, 1.1 ComponentConverter.cs, NONE, 1.1 ComponentEditor.cs, NONE, 1.1 ComponentResourceManager.cs, NONE, 1.1 ExtenderProvidedPropertyAttribute.cs, NONE, 1.1 InstallerTypeAttribute.cs, NONE, 1.1 CultureInfoConverter.cs, 1.1, 1.2 DateTimeConverter.cs, 1.1, 1.2 DecimalConverter.cs, 1.1, 1.2 EnumConverter.cs, 1.6, 1.7 EventDescriptor.cs, 1.2, 1.3 EventDescriptorCollection.cs, 1.2, 1.3 ExpandableObjectConverter.cs, 1.3, 1.4 GuidConverter.cs, 1.1, 1.2 IComponent.cs, 1.3, 1.4 LicenseManager.cs, 1.1, 1.2 LicenseProviderAttribute.cs, 1.1, 1.2 MarshalByValueComponent.cs, 1.5, 1.6 MemberDescriptor.cs, 1.2, 1.3 PropertyDescriptor.cs, 1.4, 1.5 PropertyDescriptorCollection.cs, 1.3, 1.4 PropertyTabAttribute.cs, 1.1, 1.2 ProvidePropertyAttribute.cs, 1.1, 1.2 TimeSpanConverter.cs, 1.1, 1.2 TypeConverter.cs, 1.8, 1.9 TypeDescriptor.cs, 1.2, 1.3 TypeListConverter.cs, 1.2, 1.3
- Next by Date:
[Dotgnu-pnet-commits] CVS: pnetlib ChangeLog,1.1343,1.1344
- Previous by thread:
[Dotgnu-pnet-commits] CVS: pnetlib/System/ComponentModel ArrayConverter.cs, NONE, 1.1 ComponentConverter.cs, NONE, 1.1 ComponentEditor.cs, NONE, 1.1 ComponentResourceManager.cs, NONE, 1.1 ExtenderProvidedPropertyAttribute.cs, NONE, 1.1 InstallerTypeAttribute.cs, NONE, 1.1 CultureInfoConverter.cs, 1.1, 1.2 DateTimeConverter.cs, 1.1, 1.2 DecimalConverter.cs, 1.1, 1.2 EnumConverter.cs, 1.6, 1.7 EventDescriptor.cs, 1.2, 1.3 EventDescriptorCollection.cs, 1.2, 1.3 ExpandableObjectConverter.cs, 1.3, 1.4 GuidConverter.cs, 1.1, 1.2 IComponent.cs, 1.3, 1.4 LicenseManager.cs, 1.1, 1.2 LicenseProviderAttribute.cs, 1.1, 1.2 MarshalByValueComponent.cs, 1.5, 1.6 MemberDescriptor.cs, 1.2, 1.3 PropertyDescriptor.cs, 1.4, 1.5 PropertyDescriptorCollection.cs, 1.3, 1.4 PropertyTabAttribute.cs, 1.1, 1.2 ProvidePropertyAttribute.cs, 1.1, 1.2 TimeSpanConverter.cs, 1.1, 1.2 TypeConverter.cs, 1.8, 1.9 TypeDescriptor.cs, 1.2, 1.3 TypeListConverter.cs, 1.2, 1.3
- Next by thread:
[Dotgnu-pnet-commits] CVS: pnetlib ChangeLog,1.1343,1.1344
- Index(es):