Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / CompMod / System / ComponentModel / CancelEventArgs.cs / 1 / CancelEventArgs.cs
//------------------------------------------------------------------------------
//
// 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 CancelEventArgs : EventArgs {
///
/// Indicates, on return, whether or not the operation should be cancelled
/// or not. 'true' means cancel it, 'false' means don't.
///
private bool cancel;
///
///
/// Initializes a new instance of the class with
/// cancel set to .
///
///
public CancelEventArgs() : this(false) {
}
///
///
/// Initializes a new instance of the class with
/// cancel set to the given value.
///
///
public CancelEventArgs(bool cancel)
: base() {
this.cancel = cancel;
}
///
///
/// Gets or sets a value
/// indicating whether the operation should be cancelled.
///
///
public bool Cancel {
get {
return cancel;
}
set {
this.cancel = value;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// 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 CancelEventArgs : EventArgs {
///
/// Indicates, on return, whether or not the operation should be cancelled
/// or not. 'true' means cancel it, 'false' means don't.
///
private bool cancel;
///
///
/// Initializes a new instance of the class with
/// cancel set to .
///
///
public CancelEventArgs() : this(false) {
}
///
///
/// Initializes a new instance of the class with
/// cancel set to the given value.
///
///
public CancelEventArgs(bool cancel)
: base() {
this.cancel = cancel;
}
///
///
/// Gets or sets a value
/// indicating whether the operation should be cancelled.
///
///
public bool Cancel {
get {
return cancel;
}
set {
this.cancel = value;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- EventDescriptorCollection.cs
- DataRecordInfo.cs
- UTF7Encoding.cs
- StorageEntityContainerMapping.cs
- TreeNodeBinding.cs
- FunctionDescription.cs
- FieldNameLookup.cs
- MULTI_QI.cs
- UserUseLicenseDictionaryLoader.cs
- PathParser.cs
- BrowserInteropHelper.cs
- DictionaryMarkupSerializer.cs
- ByteArrayHelperWithString.cs
- QilPatternVisitor.cs
- ChannelManagerBase.cs
- Imaging.cs
- DataControlLinkButton.cs
- TextEditorTables.cs
- PrintingPermission.cs
- ConfigurationStrings.cs
- FileNotFoundException.cs
- PackWebRequestFactory.cs
- IdentityManager.cs
- DesignerCommandAdapter.cs
- QuaternionAnimation.cs
- BitSet.cs
- CallTemplateAction.cs
- XDRSchema.cs
- CqlParser.cs
- Geometry3D.cs
- WebServiceReceive.cs
- LineGeometry.cs
- DomNameTable.cs
- PreservationFileReader.cs
- HttpTransportManager.cs
- ItemCollection.cs
- DllNotFoundException.cs
- SchemaTableOptionalColumn.cs
- RightsManagementEncryptionTransform.cs
- CommonEndpointBehaviorElement.cs
- ConfigurationLockCollection.cs
- DbException.cs
- ViewgenGatekeeper.cs
- XmlNodeComparer.cs
- ByteBufferPool.cs
- UTF7Encoding.cs
- EntitySqlQueryBuilder.cs
- LinqDataSourceView.cs
- ListItemsCollectionEditor.cs
- WebPartChrome.cs
- JsonEnumDataContract.cs
- LicenseManager.cs
- InnerItemCollectionView.cs
- Label.cs
- TextDecoration.cs
- HttpListenerContext.cs
- FamilyCollection.cs
- CharacterMetricsDictionary.cs
- propertyentry.cs
- SEHException.cs
- SoapServerProtocol.cs
- GlyphsSerializer.cs
- DependencyObjectCodeDomSerializer.cs
- QilTypeChecker.cs
- BamlRecordReader.cs
- XhtmlBasicObjectListAdapter.cs
- translator.cs
- SignatureHelper.cs
- COM2Enum.cs
- UpdateCompiler.cs
- Control.cs
- NativeRightsManagementAPIsStructures.cs
- UrlPropertyAttribute.cs
- TileModeValidation.cs
- IPipelineRuntime.cs
- ResizingMessageFilter.cs
- MeasureItemEvent.cs
- StdValidatorsAndConverters.cs
- BrowserCapabilitiesCodeGenerator.cs
- SafeRegistryKey.cs
- DocumentNUp.cs
- FamilyTypefaceCollection.cs
- FixedTextSelectionProcessor.cs
- SplitContainerDesigner.cs
- CodeExporter.cs
- TransformationRules.cs
- IndexerNameAttribute.cs
- DataError.cs
- DataViewManagerListItemTypeDescriptor.cs
- NetworkInterface.cs
- SHA1Managed.cs
- UserNamePasswordClientCredential.cs
- selecteditemcollection.cs
- StrokeRenderer.cs
- LexicalChunk.cs
- PackWebResponse.cs
- PolyBezierSegmentFigureLogic.cs
- QuotedStringFormatReader.cs
- SqlDataSourceSelectingEventArgs.cs
- SQLDecimal.cs