45 lines
1.5 KiB
C#
45 lines
1.5 KiB
C#
using System;
|
|
|
|
namespace System.ComponentModel
|
|
{
|
|
/// <summary>Provides data for a cancelable event.</summary>
|
|
// Token: 0x0200005E RID: 94
|
|
public class CancelEventArgs : EventArgs
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.ComponentModel.CancelEventArgs" /> class with the <see cref="P:System.ComponentModel.CancelEventArgs.Cancel" /> property set to false.</summary>
|
|
// Token: 0x06000398 RID: 920 RVA: 0x0000AE08 File Offset: 0x00009008
|
|
public CancelEventArgs()
|
|
{
|
|
this.cancel = false;
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.ComponentModel.CancelEventArgs" /> class with the <see cref="P:System.ComponentModel.CancelEventArgs.Cancel" /> property set to the given value.</summary>
|
|
/// <param name="cancel">true to cancel the event; otherwise, false. </param>
|
|
// Token: 0x06000399 RID: 921 RVA: 0x0000AE18 File Offset: 0x00009018
|
|
public CancelEventArgs(bool cancel)
|
|
{
|
|
this.cancel = cancel;
|
|
}
|
|
|
|
/// <summary>Gets or sets a value indicating whether the event should be canceled.</summary>
|
|
/// <returns>true if the event should be canceled; otherwise, false.</returns>
|
|
// Token: 0x170000F6 RID: 246
|
|
// (get) Token: 0x0600039A RID: 922 RVA: 0x0000AE28 File Offset: 0x00009028
|
|
// (set) Token: 0x0600039B RID: 923 RVA: 0x0000AE30 File Offset: 0x00009030
|
|
public bool Cancel
|
|
{
|
|
get
|
|
{
|
|
return this.cancel;
|
|
}
|
|
set
|
|
{
|
|
this.cancel = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0400012A RID: 298
|
|
private bool cancel;
|
|
}
|
|
}
|