Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / xsp / System / Web / UI / WebParts / WebPartHelpVerb.cs / 1 / WebPartHelpVerb.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls.WebParts { using System; internal sealed class WebPartHelpVerb : WebPartActionVerb { private string _defaultDescription; private string _defaultText; private string DefaultDescription { get { if (_defaultDescription == null) { _defaultDescription = SR.GetString(SR.WebPartHelpVerb_Description); } return _defaultDescription; } } private string DefaultText { get { if (_defaultText == null) { _defaultText = SR.GetString(SR.WebPartHelpVerb_Text); } return _defaultText; } } // Properties must look at viewstate directly instead of the property in the base class, // so we can distinguish between an unset property and a property set to String.Empty. [ WebSysDefaultValue(SR.WebPartHelpVerb_Description) ] public override string Description { get { object o = ViewState["Description"]; return (o == null) ? DefaultDescription : (string)o; } set { ViewState["Description"] = value; } } [ WebSysDefaultValue(SR.WebPartHelpVerb_Text) ] public override string Text { get { object o = ViewState["Text"]; return (o == null) ? DefaultText : (string)o; } set { ViewState["Text"] = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls.WebParts { using System; internal sealed class WebPartHelpVerb : WebPartActionVerb { private string _defaultDescription; private string _defaultText; private string DefaultDescription { get { if (_defaultDescription == null) { _defaultDescription = SR.GetString(SR.WebPartHelpVerb_Description); } return _defaultDescription; } } private string DefaultText { get { if (_defaultText == null) { _defaultText = SR.GetString(SR.WebPartHelpVerb_Text); } return _defaultText; } } // Properties must look at viewstate directly instead of the property in the base class, // so we can distinguish between an unset property and a property set to String.Empty. [ WebSysDefaultValue(SR.WebPartHelpVerb_Description) ] public override string Description { get { object o = ViewState["Description"]; return (o == null) ? DefaultDescription : (string)o; } set { ViewState["Description"] = value; } } [ WebSysDefaultValue(SR.WebPartHelpVerb_Text) ] public override string Text { get { object o = ViewState["Text"]; return (o == null) ? DefaultText : (string)o; } set { ViewState["Text"] = 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
- PrintingPermission.cs
- DataGridColumnCollection.cs
- DebugInfoExpression.cs
- NullableDoubleSumAggregationOperator.cs
- QueryCacheKey.cs
- MessageSecurityException.cs
- QuestionEventArgs.cs
- FactoryId.cs
- ToolStripOverflow.cs
- Rect3D.cs
- SettingsPropertyNotFoundException.cs
- EntityDataReader.cs
- FontDialog.cs
- TokenBasedSetEnumerator.cs
- HttpListenerResponse.cs
- _BaseOverlappedAsyncResult.cs
- _IPv4Address.cs
- UserValidatedEventArgs.cs
- PageStatePersister.cs
- ScriptDescriptor.cs
- ListenerConnectionModeReader.cs
- ApplicationHost.cs
- NetSectionGroup.cs
- ClientFormsIdentity.cs
- NamedPipeDuplicateContext.cs
- PersonalizableAttribute.cs
- SchemaImporterExtension.cs
- FindCriteria11.cs
- OpCodes.cs
- XamlFigureLengthSerializer.cs
- CharUnicodeInfo.cs
- AppModelKnownContentFactory.cs
- ParseChildrenAsPropertiesAttribute.cs
- UpWmlMobileTextWriter.cs
- ControlCachePolicy.cs
- ErrorHandlerModule.cs
- SqlFacetAttribute.cs
- OutgoingWebRequestContext.cs
- DataGridParentRows.cs
- ImageSourceConverter.cs
- BindingNavigator.cs
- SrgsElementFactory.cs
- HtmlTableRow.cs
- documentsequencetextpointer.cs
- ActiveXHelper.cs
- CodeTypeParameter.cs
- CssStyleCollection.cs
- XPathNodeHelper.cs
- CodeStatementCollection.cs
- RemotingClientProxy.cs
- PropertyEmitter.cs
- WinFormsSpinner.cs
- xsdvalidator.cs
- UpdateRecord.cs
- ParentQuery.cs
- VirtualDirectoryMappingCollection.cs
- BrowserCapabilitiesFactoryBase.cs
- CurrencyWrapper.cs
- CodeAssignStatement.cs
- JoinCqlBlock.cs
- StateMachineSubscription.cs
- ProgressPage.cs
- PackageRelationshipSelector.cs
- ReflectionTypeLoadException.cs
- BaseCollection.cs
- EmissiveMaterial.cs
- MeasureData.cs
- sqlstateclientmanager.cs
- DBAsyncResult.cs
- NameTable.cs
- AesManaged.cs
- SystemIPInterfaceProperties.cs
- SaveFileDialog.cs
- UrlRoutingHandler.cs
- AppearanceEditorPart.cs
- ObjectItemNoOpAssemblyLoader.cs
- AuthenticationManager.cs
- DivideByZeroException.cs
- FilterUserControlBase.cs
- ApplicationSecurityManager.cs
- UnsafeNativeMethodsCLR.cs
- RemotingConfigParser.cs
- MachineKeySection.cs
- ExpressionBinding.cs
- diagnosticsswitches.cs
- Base64Encoder.cs
- HostedTcpTransportManager.cs
- DocumentGridContextMenu.cs
- OneOfElement.cs
- UnknownBitmapDecoder.cs
- XamlPoint3DCollectionSerializer.cs
- TraceListener.cs
- WindowsEditBoxRange.cs
- Membership.cs
- PassportAuthentication.cs
- IsolatedStorage.cs
- WmlLinkAdapter.cs
- ArgumentValueSerializer.cs
- ParallelRangeManager.cs
- AudienceUriMode.cs