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
- Animatable.cs
- ToolBarPanel.cs
- SemaphoreFullException.cs
- IndexingContentUnit.cs
- TypeLoader.cs
- XPathDocumentNavigator.cs
- FixedSOMLineCollection.cs
- InnerItemCollectionView.cs
- CdpEqualityComparer.cs
- SimpleHandlerFactory.cs
- Vector.cs
- ToolStripLocationCancelEventArgs.cs
- HatchBrush.cs
- CacheSection.cs
- TextEncodedRawTextWriter.cs
- DependencyPropertyValueSerializer.cs
- FontNameEditor.cs
- UnsafeNativeMethods.cs
- SiteMapDataSourceView.cs
- ToolStripGripRenderEventArgs.cs
- TypeDelegator.cs
- PiiTraceSource.cs
- ActivityIdHeader.cs
- BitmapMetadataEnumerator.cs
- CharacterHit.cs
- ColumnMapProcessor.cs
- DesignTimeParseData.cs
- LoginDesignerUtil.cs
- MarshalByValueComponent.cs
- DelegatedStream.cs
- RuleInfoComparer.cs
- MiniCustomAttributeInfo.cs
- TransformCollection.cs
- PageThemeCodeDomTreeGenerator.cs
- SafeMILHandle.cs
- UrlPath.cs
- ConfigurationPropertyCollection.cs
- TraceListener.cs
- DataGridPagerStyle.cs
- NetWebProxyFinder.cs
- CompositeDataBoundControl.cs
- WindowsToolbarAsMenu.cs
- AutomationIdentifier.cs
- Calendar.cs
- VerbConverter.cs
- UniqueSet.cs
- nulltextnavigator.cs
- FrameworkTextComposition.cs
- Glyph.cs
- HttpWebResponse.cs
- SqlCacheDependencySection.cs
- SafeFileHandle.cs
- PassportAuthenticationModule.cs
- bindurihelper.cs
- ToolStripContainer.cs
- TextRangeEditTables.cs
- PreloadedPackages.cs
- FileDialogCustomPlace.cs
- FixedSOMLineRanges.cs
- EFAssociationProvider.cs
- WebPartDisplayModeCollection.cs
- ResourceDisplayNameAttribute.cs
- thaishape.cs
- ParentUndoUnit.cs
- DbParameterCollection.cs
- TargetPerspective.cs
- SqlRowUpdatingEvent.cs
- SQLBytesStorage.cs
- XmlQueryStaticData.cs
- AppDomain.cs
- SqlInfoMessageEvent.cs
- ImageMapEventArgs.cs
- UpdateException.cs
- HostedNamedPipeTransportManager.cs
- FilterUserControlBase.cs
- HierarchicalDataTemplate.cs
- TextParagraphView.cs
- AvTrace.cs
- TableItemPatternIdentifiers.cs
- DataShape.cs
- ParameterBuilder.cs
- GeometryDrawing.cs
- PageVisual.cs
- Compress.cs
- UniqueConstraint.cs
- SafePointer.cs
- UpdateDelegates.Generated.cs
- XmlValueConverter.cs
- ClientOperationFormatterProvider.cs
- AuthenticationConfig.cs
- QueryResult.cs
- Exceptions.cs
- UInt32.cs
- TriggerActionCollection.cs
- GiveFeedbackEventArgs.cs
- ColorTranslator.cs
- FlowDocumentPage.cs
- CodeMemberEvent.cs
- XmlTextReaderImpl.cs
- RouteParser.cs