using System;
namespace System.ComponentModel
{
/// Provides data for a cancelable event.
// Token: 0x0200005E RID: 94
public class CancelEventArgs : EventArgs
{
/// Initializes a new instance of the class with the property set to false.
// Token: 0x06000398 RID: 920 RVA: 0x0000AE08 File Offset: 0x00009008
public CancelEventArgs()
{
this.cancel = false;
}
/// Initializes a new instance of the class with the property set to the given value.
/// true to cancel the event; otherwise, false.
// Token: 0x06000399 RID: 921 RVA: 0x0000AE18 File Offset: 0x00009018
public CancelEventArgs(bool cancel)
{
this.cancel = cancel;
}
/// Gets or sets a value indicating whether the event should be canceled.
/// true if the event should be canceled; otherwise, false.
// 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;
}
}