//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//------------------------------------------------------------------------------
namespace System.ComponentModel {
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Security.Permissions;
///
///
/// Provides data for the
/// event.
///
///
[HostProtection(SharedState = true)]
public class HandledEventArgs : EventArgs {
///
/// Indicates, on return, whether or not the event was handled in the application's event handler.
/// 'true' means the application handled the event, 'false' means it didn't.
///
private bool handled;
///
///
/// Initializes a new instance of the class with
/// handled set to .
///
///
public HandledEventArgs() : this(false) {
}
///
///
/// Initializes a new instance of the class with
/// handled set to the given value.
///
///
public HandledEventArgs(bool defaultHandledValue)
: base() {
this.handled = defaultHandledValue;
}
///
///
/// Gets or sets a value
/// indicating whether the event is handled.
///
///
public bool Handled {
get {
return this.handled;
}
set {
this.handled = value;
}
}
}
}