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
- CodeTypeReference.cs
- InstanceCompleteException.cs
- ItemCheckedEvent.cs
- AspProxy.cs
- StringSorter.cs
- LogicalChannel.cs
- BaseDataBoundControl.cs
- LingerOption.cs
- MessageBox.cs
- DataRowExtensions.cs
- ButtonBaseAdapter.cs
- DataGridViewToolTip.cs
- EntityTypeEmitter.cs
- EditorPartChrome.cs
- StorageModelBuildProvider.cs
- XmlWrappingReader.cs
- Int16Animation.cs
- SchemaType.cs
- SpeechSeg.cs
- Parser.cs
- ValueExpressions.cs
- ConstNode.cs
- _AutoWebProxyScriptEngine.cs
- Point3DCollection.cs
- CodeConditionStatement.cs
- FontUnitConverter.cs
- Misc.cs
- TextElementEnumerator.cs
- HttpRuntime.cs
- PostBackOptions.cs
- ConfigXmlElement.cs
- CompressStream.cs
- GorillaCodec.cs
- ParseChildrenAsPropertiesAttribute.cs
- TdsParserStaticMethods.cs
- MailSettingsSection.cs
- HttpConfigurationSystem.cs
- dbenumerator.cs
- TextServicesCompartmentEventSink.cs
- Version.cs
- DynamicDataManager.cs
- RSACryptoServiceProvider.cs
- RenderTargetBitmap.cs
- DataSourceXmlElementAttribute.cs
- ModulesEntry.cs
- WaitHandleCannotBeOpenedException.cs
- _NegoState.cs
- ProvidePropertyAttribute.cs
- InvokeBinder.cs
- CodeSubDirectory.cs
- GroupItem.cs
- LoginUtil.cs
- Roles.cs
- BuildManagerHost.cs
- HttpListenerResponse.cs
- DataFormat.cs
- ProtocolsConfigurationHandler.cs
- PropertyStore.cs
- MetabaseServerConfig.cs
- XmlAnyElementAttributes.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- Separator.cs
- TextInfo.cs
- BooleanFunctions.cs
- ExtentJoinTreeNode.cs
- HttpCookie.cs
- sqlstateclientmanager.cs
- MatrixConverter.cs
- ScriptModule.cs
- SmiSettersStream.cs
- GridItem.cs
- listitem.cs
- StateMachineAction.cs
- coordinator.cs
- ZoneMembershipCondition.cs
- BitmapInitialize.cs
- DelegatingChannelListener.cs
- Separator.cs
- SecurityTokenSerializer.cs
- CompilerParameters.cs
- BindingSource.cs
- ValueOfAction.cs
- CfgParser.cs
- ThicknessConverter.cs
- DirectionalLight.cs
- DataStreamFromComStream.cs
- BindingExpressionUncommonField.cs
- DesignerActionService.cs
- GlyphCollection.cs
- PropertyEmitter.cs
- SafeViewOfFileHandle.cs
- RootBrowserWindowProxy.cs
- WSMessageEncoding.cs
- WebPartUserCapability.cs
- HtmlTableRowCollection.cs
- DataSvcMapFileSerializer.cs
- SerializationInfoEnumerator.cs
- ImageList.cs
- DocumentGridPage.cs