Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / DynamicData / DynamicData / PageAction.cs / 1305376 / PageAction.cs
using System.ComponentModel; namespace System.Web.DynamicData { ////// Class that holds the name of common Actions for convenience /// public static class PageAction { ////// Returns "Details" /// public static string Details { get { return "Details"; } } ////// Returns "List" /// public static string List { get { return "List"; } } ////// Returns "Edit" /// public static string Edit { get { return "Edit"; } } ////// Returns "Insert" /// public static string Insert { get { return "Insert"; } } } // internal class ActionConverter : StringConverter { private static string[] _targetValues = { PageAction.Details, PageAction.Edit, PageAction.Insert, PageAction.List }; private StandardValuesCollection _values; public override StandardValuesCollection GetStandardValues(ITypeDescriptorContext context) { if (_values == null) { _values = new StandardValuesCollection(_targetValues); } return _values; } public override bool GetStandardValuesExclusive(ITypeDescriptorContext context) { return false; } public override bool GetStandardValuesSupported(ITypeDescriptorContext context) { return true; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. using System.ComponentModel; namespace System.Web.DynamicData { ////// Class that holds the name of common Actions for convenience /// public static class PageAction { ////// Returns "Details" /// public static string Details { get { return "Details"; } } ////// Returns "List" /// public static string List { get { return "List"; } } ////// Returns "Edit" /// public static string Edit { get { return "Edit"; } } ////// Returns "Insert" /// public static string Insert { get { return "Insert"; } } } // internal class ActionConverter : StringConverter { private static string[] _targetValues = { PageAction.Details, PageAction.Edit, PageAction.Insert, PageAction.List }; private StandardValuesCollection _values; public override StandardValuesCollection GetStandardValues(ITypeDescriptorContext context) { if (_values == null) { _values = new StandardValuesCollection(_targetValues); } return _values; } public override bool GetStandardValuesExclusive(ITypeDescriptorContext context) { return false; } public override bool GetStandardValuesSupported(ITypeDescriptorContext context) { return true; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ParseHttpDate.cs
- SID.cs
- OpacityConverter.cs
- ProtectedConfiguration.cs
- EntityDataSourceDataSelection.cs
- HandlerFactoryWrapper.cs
- FormDocumentDesigner.cs
- SoapTypeAttribute.cs
- IChannel.cs
- ListViewInsertedEventArgs.cs
- DocumentsTrace.cs
- ErrorActivity.cs
- HtmlValidationSummaryAdapter.cs
- InternalConfigSettingsFactory.cs
- EllipseGeometry.cs
- InternalControlCollection.cs
- InputManager.cs
- DataGridViewRowStateChangedEventArgs.cs
- DynamicMethod.cs
- CodeCommentStatementCollection.cs
- HwndHostAutomationPeer.cs
- DefaultEvaluationContext.cs
- HtmlInputPassword.cs
- UIElement.cs
- ADMembershipProvider.cs
- DataGridViewCellStyleChangedEventArgs.cs
- ProfileParameter.cs
- SnapshotChangeTrackingStrategy.cs
- IteratorFilter.cs
- SchemaNotation.cs
- ScriptReference.cs
- DelegateTypeInfo.cs
- DataStreamFromComStream.cs
- CompilerCollection.cs
- RuntimeConfig.cs
- HashHelper.cs
- StylusPointPropertyId.cs
- DataViewSettingCollection.cs
- ComMethodElementCollection.cs
- GifBitmapDecoder.cs
- Exceptions.cs
- OracleRowUpdatedEventArgs.cs
- GeometryDrawing.cs
- XmlBoundElement.cs
- MobileControlsSection.cs
- HttpCachePolicyWrapper.cs
- DoubleAnimation.cs
- ProxySimple.cs
- ValidatorCollection.cs
- PreApplicationStartMethodAttribute.cs
- XmlCDATASection.cs
- SafeSecurityHelper.cs
- TabletDeviceInfo.cs
- DataViewManager.cs
- BypassElement.cs
- ValidatedControlConverter.cs
- XsdBuildProvider.cs
- ExitEventArgs.cs
- StringValidatorAttribute.cs
- XmlException.cs
- SystemMulticastIPAddressInformation.cs
- ProfileServiceManager.cs
- counter.cs
- EntityDescriptor.cs
- DbInsertCommandTree.cs
- XmlCountingReader.cs
- Model3D.cs
- FileVersionInfo.cs
- SingleQueryOperator.cs
- JoinGraph.cs
- SafeRightsManagementQueryHandle.cs
- KeyedHashAlgorithm.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- IRCollection.cs
- PackWebResponse.cs
- SwitchAttribute.cs
- WriteTimeStream.cs
- RemoteHelper.cs
- SuppressIldasmAttribute.cs
- DataGridBoolColumn.cs
- ConfigurationErrorsException.cs
- StatusBarItem.cs
- UnhandledExceptionEventArgs.cs
- DnsEndPoint.cs
- HttpStreamFormatter.cs
- TrackingServices.cs
- HatchBrush.cs
- OpenTypeLayoutCache.cs
- EntityParameter.cs
- CharAnimationBase.cs
- RightsManagementEncryptionTransform.cs
- CommandEventArgs.cs
- FontCollection.cs
- PartialClassGenerationTaskInternal.cs
- DocumentReferenceCollection.cs
- ListView.cs
- PersonalizablePropertyEntry.cs
- DataTableReader.cs
- AnonymousIdentificationModule.cs
- JournalEntryStack.cs