Files
Dec2017-Script-Dump/System/ComponentModel/Design/DesignerTransactionCloseEventArgs.cs
2026-06-04 11:42:34 +02:00

61 lines
2.6 KiB
C#

using System;
using System.Runtime.InteropServices;
namespace System.ComponentModel.Design
{
/// <summary>Provides data for the <see cref="E:System.ComponentModel.Design.IDesignerHost.TransactionClosed" /> and <see cref="E:System.ComponentModel.Design.IDesignerHost.TransactionClosing" /> events.</summary>
// Token: 0x02000043 RID: 67
[ComVisible(true)]
public class DesignerTransactionCloseEventArgs : EventArgs
{
/// <summary>Initializes a new instance of the <see cref="T:System.ComponentModel.Design.DesignerTransactionCloseEventArgs" /> class. </summary>
/// <param name="commit">A value indicating whether the transaction was committed.</param>
/// <param name="lastTransaction">true if this is the last transaction to close; otherwise, false.</param>
// Token: 0x060002BB RID: 699 RVA: 0x00009828 File Offset: 0x00007A28
public DesignerTransactionCloseEventArgs(bool commit, bool lastTransaction)
{
this.commit = commit;
this.last_transaction = lastTransaction;
}
/// <summary>Initializes a new instance of the <see cref="T:System.ComponentModel.Design.DesignerTransactionCloseEventArgs" /> class, using the specified value that indicates whether the designer called <see cref="M:System.ComponentModel.Design.DesignerTransaction.Commit" /> on the transaction.</summary>
/// <param name="commit">A value indicating whether the transaction was committed.</param>
// Token: 0x060002BC RID: 700 RVA: 0x00009840 File Offset: 0x00007A40
[Obsolete("Use another constructor that indicates lastTransaction")]
public DesignerTransactionCloseEventArgs(bool commit)
{
this.commit = commit;
}
/// <summary>Gets a value indicating whether this is the last transaction to close.</summary>
/// <returns>true, if this is the last transaction to close; otherwise, false. </returns>
// Token: 0x170000CB RID: 203
// (get) Token: 0x060002BD RID: 701 RVA: 0x00009850 File Offset: 0x00007A50
public bool LastTransaction
{
get
{
return this.last_transaction;
}
}
/// <summary>Indicates whether the designer called <see cref="M:System.ComponentModel.Design.DesignerTransaction.Commit" /> on the transaction.</summary>
/// <returns>true if the designer called <see cref="M:System.ComponentModel.Design.DesignerTransaction.Commit" /> on the transaction; otherwise, false.</returns>
// Token: 0x170000CC RID: 204
// (get) Token: 0x060002BE RID: 702 RVA: 0x00009858 File Offset: 0x00007A58
public bool TransactionCommitted
{
get
{
return this.commit;
}
}
// Token: 0x040000C7 RID: 199
private bool commit;
// Token: 0x040000C8 RID: 200
private bool last_transaction;
}
}