Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / ndp / fx / src / xsp / System / Web / UI / WebParts / WebPartMinimizeVerb.cs / 1 / WebPartMinimizeVerb.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls.WebParts { using System; internal sealed class WebPartMinimizeVerb : WebPartActionVerb { private string _defaultDescription; private string _defaultText; private string DefaultDescription { get { if (_defaultDescription == null) { _defaultDescription = SR.GetString(SR.WebPartMinimizeVerb_Description); } return _defaultDescription; } } private string DefaultText { get { if (_defaultText == null) { _defaultText = SR.GetString(SR.WebPartMinimizeVerb_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.WebPartMinimizeVerb_Description) ] public override string Description { get { object o = ViewState["Description"]; return (o == null) ? DefaultDescription : (string)o; } set { ViewState["Description"] = value; } } [ WebSysDefaultValue(SR.WebPartMinimizeVerb_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. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls.WebParts { using System; internal sealed class WebPartMinimizeVerb : WebPartActionVerb { private string _defaultDescription; private string _defaultText; private string DefaultDescription { get { if (_defaultDescription == null) { _defaultDescription = SR.GetString(SR.WebPartMinimizeVerb_Description); } return _defaultDescription; } } private string DefaultText { get { if (_defaultText == null) { _defaultText = SR.GetString(SR.WebPartMinimizeVerb_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.WebPartMinimizeVerb_Description) ] public override string Description { get { object o = ViewState["Description"]; return (o == null) ? DefaultDescription : (string)o; } set { ViewState["Description"] = value; } } [ WebSysDefaultValue(SR.WebPartMinimizeVerb_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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- EdgeProfileValidation.cs
- WindowClosedEventArgs.cs
- Guid.cs
- SingleQueryOperator.cs
- FileDialogPermission.cs
- DeferredElementTreeState.cs
- SystemPens.cs
- XmlSchemaSubstitutionGroup.cs
- Parser.cs
- DbConnectionClosed.cs
- WebExceptionStatus.cs
- DecoderFallback.cs
- HtmlShim.cs
- TextWriterEngine.cs
- BuildProviderUtils.cs
- FileRecordSequenceCompletedAsyncResult.cs
- Function.cs
- NavigationPropertyAccessor.cs
- StringHandle.cs
- SettingsPropertyIsReadOnlyException.cs
- DataGridRowDetailsEventArgs.cs
- COM2PictureConverter.cs
- BamlTreeMap.cs
- ExpanderAutomationPeer.cs
- WebPartDescription.cs
- MatrixAnimationUsingKeyFrames.cs
- BamlReader.cs
- Inline.cs
- StringUtil.cs
- FileResponseElement.cs
- HMACSHA512.cs
- CqlLexerHelpers.cs
- DeviceSpecificChoice.cs
- CacheMemory.cs
- MetaData.cs
- MissingManifestResourceException.cs
- OracleColumn.cs
- RepeaterItemEventArgs.cs
- DependentList.cs
- GridViewRow.cs
- Point3D.cs
- DictionaryEntry.cs
- AlphaSortedEnumConverter.cs
- KnownBoxes.cs
- ConfigurationValidatorBase.cs
- SpecialFolderEnumConverter.cs
- ToolStripContextMenu.cs
- ReliableChannelFactory.cs
- StorageInfo.cs
- DelayedRegex.cs
- AttributeAction.cs
- ExpressionConverter.cs
- XmlSchemaSimpleTypeUnion.cs
- PagesSection.cs
- StringArrayConverter.cs
- HtmlInputFile.cs
- OrderPreservingPipeliningSpoolingTask.cs
- CharacterMetricsDictionary.cs
- DoubleLinkList.cs
- AuthenticationManager.cs
- XMLSchema.cs
- PeerHopCountAttribute.cs
- RestHandlerFactory.cs
- FormViewPageEventArgs.cs
- LinqToSqlWrapper.cs
- FindCriteria.cs
- FieldNameLookup.cs
- Point3DAnimation.cs
- UpdateCompiler.cs
- NetworkCredential.cs
- VirtualDirectoryMapping.cs
- CodeAccessPermission.cs
- TCPClient.cs
- QuarticEase.cs
- EventProvider.cs
- XmlCollation.cs
- DrawingVisual.cs
- KnownBoxes.cs
- ScrollChrome.cs
- TagMapCollection.cs
- InvalidFilterCriteriaException.cs
- StylusCaptureWithinProperty.cs
- TransactionWaitAsyncResult.cs
- SponsorHelper.cs
- oledbmetadatacollectionnames.cs
- DeferredTextReference.cs
- ISCIIEncoding.cs
- HttpListenerException.cs
- ShutDownListener.cs
- RowCache.cs
- FileVersionInfo.cs
- Contracts.cs
- DataGridViewCellParsingEventArgs.cs
- AsyncOperationManager.cs
- Parameter.cs
- ExpandedWrapper.cs
- ManualResetEvent.cs
- TextWriterEngine.cs
- PerspectiveCamera.cs
- XmlObjectSerializerWriteContextComplex.cs