Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- HtmlTable.cs
- EntityClassGenerator.cs
- ImageSource.cs
- XmlJsonReader.cs
- XmlChoiceIdentifierAttribute.cs
- ReadOnlyCollectionBase.cs
- SiteMapNodeItem.cs
- ControlAdapter.cs
- C14NUtil.cs
- Tokenizer.cs
- CopyAction.cs
- MediaElementAutomationPeer.cs
- StatusBar.cs
- control.ime.cs
- MetadataUtilsSmi.cs
- ButtonRenderer.cs
- DataGridViewRowCancelEventArgs.cs
- XmlSerializerNamespaces.cs
- Command.cs
- RectangleHotSpot.cs
- SqlDataReaderSmi.cs
- panel.cs
- InstanceLockLostException.cs
- MimePart.cs
- BodyGlyph.cs
- Metafile.cs
- TableColumnCollection.cs
- XmlStreamNodeWriter.cs
- OleDbCommandBuilder.cs
- DurableRuntimeValidator.cs
- SliderAutomationPeer.cs
- RoutedEventHandlerInfo.cs
- ProcessHost.cs
- SamlAssertionKeyIdentifierClause.cs
- RelationshipEntry.cs
- SizeAnimationBase.cs
- UnauthorizedWebPart.cs
- XmlIncludeAttribute.cs
- ContainsRowNumberChecker.cs
- StyleXamlParser.cs
- AutomationProperties.cs
- httpapplicationstate.cs
- DependencyObjectPropertyDescriptor.cs
- Interlocked.cs
- IndexedString.cs
- PersonalizablePropertyEntry.cs
- FilteredDataSetHelper.cs
- NativeRightsManagementAPIsStructures.cs
- AlignmentYValidation.cs
- InputProviderSite.cs
- ReachNamespaceInfo.cs
- LayoutInformation.cs
- PeerApplication.cs
- CodePageUtils.cs
- streamingZipPartStream.cs
- CodeGotoStatement.cs
- AssemblyEvidenceFactory.cs
- HostExecutionContextManager.cs
- DiscoveryMessageSequence11.cs
- XPathAncestorQuery.cs
- ButtonChrome.cs
- CallbackValidator.cs
- FileDialog_Vista_Interop.cs
- StoreContentChangedEventArgs.cs
- Boolean.cs
- LookupBindingPropertiesAttribute.cs
- SmtpMail.cs
- ObjectAssociationEndMapping.cs
- XpsFontSerializationService.cs
- DependencyObjectValidator.cs
- TrustManagerPromptUI.cs
- Size3D.cs
- transactioncontext.cs
- CollectionDataContractAttribute.cs
- ClrProviderManifest.cs
- NonSerializedAttribute.cs
- ServiceOperationInfoTypeConverter.cs
- SqlAliaser.cs
- EditingCommands.cs
- RequestTimeoutManager.cs
- TypedDataSourceCodeGenerator.cs
- SelectionProcessor.cs
- SpecularMaterial.cs
- COM2Enum.cs
- SimpleBitVector32.cs
- CatalogPartCollection.cs
- RegexParser.cs
- WebDescriptionAttribute.cs
- CryptoStream.cs
- EncryptedHeader.cs
- UIElement.cs
- ViewgenGatekeeper.cs
- TextBoxBase.cs
- ReachBasicContext.cs
- PerformanceCounterManager.cs
- SiteMapDataSourceView.cs
- _AutoWebProxyScriptHelper.cs
- ToolStripItemClickedEventArgs.cs
- Logging.cs
- FixedTextSelectionProcessor.cs