Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / WebControls / DetailsViewModeEventArgs.cs / 1305376 / DetailsViewModeEventArgs.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 DetailsViewModeEventArgs : CancelEventArgs {
private DetailsViewMode _mode;
private bool _cancelingEdit;
///
/// Initializes a new instance of class.
///
public DetailsViewModeEventArgs(DetailsViewMode 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 DetailsViewMode in the . This property is read-only.
///
public DetailsViewMode 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 DetailsViewModeEventArgs : CancelEventArgs {
private DetailsViewMode _mode;
private bool _cancelingEdit;
///
/// Initializes a new instance of class.
///
public DetailsViewModeEventArgs(DetailsViewMode 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 DetailsViewMode in the . This property is read-only.
///
public DetailsViewMode 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
- EntityDataSourceView.cs
- PersistStreamTypeWrapper.cs
- MergePropertyDescriptor.cs
- SQLMembershipProvider.cs
- RequestCachePolicy.cs
- DataPagerFieldCommandEventArgs.cs
- HttpContext.cs
- ColumnReorderedEventArgs.cs
- ChtmlPageAdapter.cs
- Mapping.cs
- Rule.cs
- LogicalTreeHelper.cs
- HttpApplication.cs
- __Error.cs
- SequentialOutput.cs
- ColumnPropertiesGroup.cs
- Vector3DAnimation.cs
- __Error.cs
- ErrorProvider.cs
- Translator.cs
- MsmqIntegrationBindingElement.cs
- PointKeyFrameCollection.cs
- ClientData.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- XmlSchemaComplexContentRestriction.cs
- NetCodeGroup.cs
- PtsContext.cs
- StylusPoint.cs
- ProxyWebPartManager.cs
- EventHandlersStore.cs
- XmlSchema.cs
- FixedTextSelectionProcessor.cs
- SQLBinaryStorage.cs
- InputManager.cs
- DataServiceQueryOfT.cs
- TTSEngineProxy.cs
- SyntaxCheck.cs
- CheckedPointers.cs
- XmlTextWriter.cs
- CatalogPartChrome.cs
- StylusDownEventArgs.cs
- DropDownList.cs
- NamespaceDisplayAutomationPeer.cs
- metadatamappinghashervisitor.cs
- AlphaSortedEnumConverter.cs
- DataGridViewControlCollection.cs
- XmlDownloadManager.cs
- ImageAutomationPeer.cs
- DataGridAutomationPeer.cs
- Storyboard.cs
- embossbitmapeffect.cs
- TypedDatasetGenerator.cs
- InheritanceAttribute.cs
- DbExpressionBuilder.cs
- EdmRelationshipRoleAttribute.cs
- UIElement3D.cs
- SapiInterop.cs
- CardSpacePolicyElement.cs
- ChannelPoolSettings.cs
- DataBoundLiteralControl.cs
- UniqueIdentifierService.cs
- KnownTypesHelper.cs
- WebBrowserNavigatingEventHandler.cs
- TypedElement.cs
- WindowsListViewScroll.cs
- followingsibling.cs
- IODescriptionAttribute.cs
- TagPrefixAttribute.cs
- GeometryDrawing.cs
- Formatter.cs
- RegexCompilationInfo.cs
- DependencyPropertyValueSerializer.cs
- SQLDateTime.cs
- Byte.cs
- GenericAuthenticationEventArgs.cs
- AQNBuilder.cs
- ToolStripDropDownButton.cs
- BinaryFormatter.cs
- StorageEndPropertyMapping.cs
- LogLogRecordEnumerator.cs
- ArrayList.cs
- WebPartExportVerb.cs
- RoutedUICommand.cs
- WorkflowLayouts.cs
- Array.cs
- Rotation3DAnimation.cs
- ProviderIncompatibleException.cs
- SafePEFileHandle.cs
- BrowserCapabilitiesCodeGenerator.cs
- VectorValueSerializer.cs
- CultureInfoConverter.cs
- SessionSwitchEventArgs.cs
- MaterializeFromAtom.cs
- Base64WriteStateInfo.cs
- DesignerOptionService.cs
- XmlAttributeCollection.cs
- AutomationPeer.cs
- WindowShowOrOpenTracker.cs
- EditorBrowsableAttribute.cs
- InvalidWMPVersionException.cs