Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / WebControls / FormViewModeEventArgs.cs / 1305376 / FormViewModeEventArgs.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Web.UI.WebControls {
using System;
using System.ComponentModel;
///
/// Provides data for the event.
///
public class FormViewModeEventArgs : CancelEventArgs {
private FormViewMode _mode;
private bool _cancelingEdit;
///
/// Initializes a new instance of class.
///
public FormViewModeEventArgs(FormViewMode mode, bool cancelingEdit) : base(false) {
this._mode = mode;
this._cancelingEdit = cancelingEdit;
}
///
/// Gets a bool in the indicating whether the mode change is the result of a cancel command.
/// This property is read-only.
///
public bool CancelingEdit {
get {
return _cancelingEdit;
}
}
///
/// Gets a FormViewMode in the . This property is read-only.
///
public FormViewMode NewMode {
get {
return _mode;
}
set {
_mode = value;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Web.UI.WebControls {
using System;
using System.ComponentModel;
///
/// Provides data for the event.
///
public class FormViewModeEventArgs : CancelEventArgs {
private FormViewMode _mode;
private bool _cancelingEdit;
///
/// Initializes a new instance of class.
///
public FormViewModeEventArgs(FormViewMode mode, bool cancelingEdit) : base(false) {
this._mode = mode;
this._cancelingEdit = cancelingEdit;
}
///
/// Gets a bool in the indicating whether the mode change is the result of a cancel command.
/// This property is read-only.
///
public bool CancelingEdit {
get {
return _cancelingEdit;
}
}
///
/// Gets a FormViewMode in the . This property is read-only.
///
public FormViewMode NewMode {
get {
return _mode;
}
set {
_mode = 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
- FixedFindEngine.cs
- DataRowComparer.cs
- SupportsEventValidationAttribute.cs
- Fonts.cs
- BlockUIContainer.cs
- RoleGroup.cs
- SqlConnectionManager.cs
- SettingsBindableAttribute.cs
- ErasingStroke.cs
- FrameworkPropertyMetadata.cs
- WindowsToolbarItemAsMenuItem.cs
- TextDecorations.cs
- IconBitmapDecoder.cs
- ListViewGroupConverter.cs
- DelegatingTypeDescriptionProvider.cs
- DynamicMetaObject.cs
- WinEventWrap.cs
- WebPartsPersonalization.cs
- ShaderEffect.cs
- Delegate.cs
- GridViewUpdatedEventArgs.cs
- WebPartUtil.cs
- WebPartTransformerAttribute.cs
- Socket.cs
- AliasedSlot.cs
- SearchForVirtualItemEventArgs.cs
- WindowsGraphicsWrapper.cs
- SQLGuidStorage.cs
- RelationshipEntry.cs
- SqlExpressionNullability.cs
- DirectoryNotFoundException.cs
- LambdaCompiler.Lambda.cs
- ResourceIDHelper.cs
- SymbolTable.cs
- SHA1CryptoServiceProvider.cs
- PathFigureCollection.cs
- MsmqInputSessionChannelListener.cs
- DataTableMappingCollection.cs
- WebEvents.cs
- WindowsFormsSectionHandler.cs
- ComponentFactoryHelpers.cs
- OutputCacheSection.cs
- DependencyProperty.cs
- WindowsUpDown.cs
- typedescriptorpermission.cs
- PathNode.cs
- BorderSidesEditor.cs
- SchemaTableOptionalColumn.cs
- ParameterReplacerVisitor.cs
- RegistryPermission.cs
- ObjectDataSourceView.cs
- DelegatingTypeDescriptionProvider.cs
- CompressionTransform.cs
- DisplayNameAttribute.cs
- COM2EnumConverter.cs
- LayoutManager.cs
- PersonalizableTypeEntry.cs
- UntrustedRecipientException.cs
- COM2ExtendedTypeConverter.cs
- SharedStatics.cs
- Options.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- XmlEntityReference.cs
- BufferModesCollection.cs
- BitmapPalettes.cs
- SqlUtils.cs
- regiisutil.cs
- ScopelessEnumAttribute.cs
- InstancePersistenceCommand.cs
- GetPageNumberCompletedEventArgs.cs
- XMLSyntaxException.cs
- WorkflowQueue.cs
- CanonicalFontFamilyReference.cs
- TextRange.cs
- ListSortDescription.cs
- FlagsAttribute.cs
- DateTimeConverter.cs
- XmlSignatureProperties.cs
- GridLength.cs
- Timer.cs
- FillErrorEventArgs.cs
- XmlHelper.cs
- CacheHelper.cs
- MouseEventArgs.cs
- TypeTypeConverter.cs
- NullRuntimeConfig.cs
- WindowsEditBox.cs
- ChildDocumentBlock.cs
- OverloadGroupAttribute.cs
- ParameterElementCollection.cs
- LambdaCompiler.Generated.cs
- LinkLabel.cs
- QueryOutputWriter.cs
- SimplePropertyEntry.cs
- Transform.cs
- IODescriptionAttribute.cs
- DayRenderEvent.cs
- XmlEntity.cs
- Decoder.cs
- ExceptQueryOperator.cs