From c8dfe0536baeac1f640bb1e2abc37b3a9f41906b Mon Sep 17 00:00:00 2001 From: Chris Toshok Date: Sat, 10 Mar 2007 03:24:43 +0000 Subject: [PATCH] 2007-03-09 Chris Toshok * System.ComponentModel.Design/DesignerTransactionCloseEventArgs.cs: update this to 2.0. massage a patch from Ivan Zlatev. svn path=/trunk/mcs/; revision=74045 --- mcs/class/System/ChangeLog | 5 ++++ .../DesignerTransactionCloseEventArgs.cs | 27 +++++++++++++++++----- 2 files changed, 26 insertions(+), 6 deletions(-) diff --git a/mcs/class/System/ChangeLog b/mcs/class/System/ChangeLog index fe1436b2858..c855678ca9d 100644 --- a/mcs/class/System/ChangeLog +++ b/mcs/class/System/ChangeLog @@ -1,3 +1,8 @@ +2007-03-09 Chris Toshok + + * System.ComponentModel.Design/DesignerTransactionCloseEventArgs.cs: + update this to 2.0. massage a patch from Ivan Zlatev. + 2007-02-27 Rolf Bjarne Kvinge * System_test.dll.sources: Added MaskedTextProviderTest.cs diff --git a/mcs/class/System/System.ComponentModel.Design/DesignerTransactionCloseEventArgs.cs b/mcs/class/System/System.ComponentModel.Design/DesignerTransactionCloseEventArgs.cs index 648bb8dcb7a..0b7292d170b 100644 --- a/mcs/class/System/System.ComponentModel.Design/DesignerTransactionCloseEventArgs.cs +++ b/mcs/class/System/System.ComponentModel.Design/DesignerTransactionCloseEventArgs.cs @@ -2,6 +2,7 @@ // // Author: // Alejandro Sánchez Acosta +// Ivan N. Zlatev // // (C) Alejandro Sánchez Acosta // @@ -35,15 +36,29 @@ namespace System.ComponentModel.Design public class DesignerTransactionCloseEventArgs : EventArgs { private bool commit; - public DesignerTransactionCloseEventArgs (bool commit) { + private bool last_transaction; + +#if NET_2_0 + public +#endif + DesignerTransactionCloseEventArgs (bool commit, bool lastTransaction) + { this.commit = commit; + last_transaction = lastTransaction; } - - public bool TransactionCommitted + + public DesignerTransactionCloseEventArgs (bool commit) : this (commit, false) { - get { - return commit; - } + } + +#if NET_2_0 + public bool LastTransaction { + get { return last_transaction; } + } +#endif + + public bool TransactionCommitted { + get { return commit; } } } } -- 2.11.4.GIT