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 / WebPartCloseVerb.cs / 1 / WebPartCloseVerb.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls.WebParts { using System; internal sealed class WebPartCloseVerb : WebPartActionVerb { private string _defaultDescription; private string _defaultText; private string DefaultDescription { get { if (_defaultDescription == null) { _defaultDescription = SR.GetString(SR.WebPartCloseVerb_Description); } return _defaultDescription; } } private string DefaultText { get { if (_defaultText == null) { _defaultText = SR.GetString(SR.WebPartCloseVerb_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.WebPartCloseVerb_Description) ] public override string Description { get { object o = ViewState["Description"]; return (o == null) ? DefaultDescription : (string)o; } set { ViewState["Description"] = value; } } [ WebSysDefaultValue(SR.WebPartCloseVerb_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 WebPartCloseVerb : WebPartActionVerb { private string _defaultDescription; private string _defaultText; private string DefaultDescription { get { if (_defaultDescription == null) { _defaultDescription = SR.GetString(SR.WebPartCloseVerb_Description); } return _defaultDescription; } } private string DefaultText { get { if (_defaultText == null) { _defaultText = SR.GetString(SR.WebPartCloseVerb_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.WebPartCloseVerb_Description) ] public override string Description { get { object o = ViewState["Description"]; return (o == null) ? DefaultDescription : (string)o; } set { ViewState["Description"] = value; } } [ WebSysDefaultValue(SR.WebPartCloseVerb_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
- HighContrastHelper.cs
- HelpHtmlBuilder.cs
- WebBrowser.cs
- ITreeGenerator.cs
- IdentityNotMappedException.cs
- PropertyValue.cs
- safex509handles.cs
- QilFactory.cs
- BamlCollectionHolder.cs
- StorageAssociationSetMapping.cs
- PassportIdentity.cs
- OdbcFactory.cs
- StorageMappingFragment.cs
- PrivilegedConfigurationManager.cs
- Clause.cs
- DesignTimeVisibleAttribute.cs
- ProgressBar.cs
- IconConverter.cs
- BasicKeyConstraint.cs
- BitVector32.cs
- DatatypeImplementation.cs
- ProfilePropertyMetadata.cs
- WebPartsPersonalizationAuthorization.cs
- ConfigurationLoaderException.cs
- CaseStatementSlot.cs
- HwndTarget.cs
- WsatTransactionFormatter.cs
- ControllableStoryboardAction.cs
- ACE.cs
- LabelEditEvent.cs
- DotExpr.cs
- ExtentKey.cs
- UnaryNode.cs
- JsonSerializer.cs
- BitmapEffectGroup.cs
- DataReaderContainer.cs
- SectionRecord.cs
- SspiWrapper.cs
- DeploymentExceptionMapper.cs
- DetailsViewModeEventArgs.cs
- TemplateControl.cs
- SecurityBindingElementImporter.cs
- DrawingVisualDrawingContext.cs
- PublishLicense.cs
- ActivityTypeCodeDomSerializer.cs
- PixelFormats.cs
- SslStreamSecurityElement.cs
- DESCryptoServiceProvider.cs
- UInt32.cs
- DocumentsTrace.cs
- X509Utils.cs
- ProfileGroupSettings.cs
- ImageSourceValueSerializer.cs
- NullReferenceException.cs
- SizeLimitedCache.cs
- Compress.cs
- SymLanguageType.cs
- TypeSource.cs
- CodePrimitiveExpression.cs
- SiteOfOriginPart.cs
- DataGridColumnHeadersPresenterAutomationPeer.cs
- PnrpPeerResolverBindingElement.cs
- MultiSelector.cs
- DatePickerAutomationPeer.cs
- CellLabel.cs
- BuildResult.cs
- PageClientProxyGenerator.cs
- FaultContext.cs
- SecurityHelper.cs
- ClientApiGenerator.cs
- HostingPreferredMapPath.cs
- BuilderPropertyEntry.cs
- SqlDataSourceQuery.cs
- EasingFunctionBase.cs
- ExpressionNode.cs
- Message.cs
- RuntimeEnvironment.cs
- AmbientValueAttribute.cs
- EnumValAlphaComparer.cs
- CodeStatement.cs
- Rule.cs
- Visual3D.cs
- InputProviderSite.cs
- TraceListeners.cs
- ConstNode.cs
- PrintingPermission.cs
- FileDialog.cs
- PerfCounters.cs
- ExtractorMetadata.cs
- IncrementalReadDecoders.cs
- DataGridState.cs
- FormsIdentity.cs
- IgnorePropertiesAttribute.cs
- RepeaterItemEventArgs.cs
- LiteralSubsegment.cs
- XmlSchemaComplexContent.cs
- AttachedPropertyMethodSelector.cs
- HtmlValidatorAdapter.cs
- UrlUtility.cs
- ResourceReferenceExpression.cs