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

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- FacetValueContainer.cs
- BasicHttpSecurityMode.cs
- PriorityRange.cs
- SrgsElement.cs
- InstanceHandle.cs
- EmptyEnumerable.cs
- MessageBuffer.cs
- DisableDpiAwarenessAttribute.cs
- SecurityImpersonationBehavior.cs
- SemanticResultValue.cs
- Encoder.cs
- RenderingBiasValidation.cs
- XmlSchemaComplexContentRestriction.cs
- ALinqExpressionVisitor.cs
- HyperLinkStyle.cs
- MergePropertyDescriptor.cs
- GridProviderWrapper.cs
- DrawListViewColumnHeaderEventArgs.cs
- ToggleProviderWrapper.cs
- TemplateBindingExtensionConverter.cs
- CommonProperties.cs
- Trace.cs
- ToolStripPanelRenderEventArgs.cs
- InputElement.cs
- MexTcpBindingElement.cs
- AddIn.cs
- ThreadAbortException.cs
- RIPEMD160Managed.cs
- FormatConvertedBitmap.cs
- XsltArgumentList.cs
- HttpBufferlessInputStream.cs
- DoubleAnimationClockResource.cs
- SettingsPropertyCollection.cs
- WebContext.cs
- TimerEventSubscriptionCollection.cs
- NameNode.cs
- InvalidWMPVersionException.cs
- SamlConstants.cs
- Zone.cs
- TypeDependencyAttribute.cs
- ArrangedElement.cs
- CollectionCodeDomSerializer.cs
- XmlEntity.cs
- VisualBasicExpressionConverter.cs
- PeerCollaboration.cs
- HttpApplicationFactory.cs
- AssertSection.cs
- SpecularMaterial.cs
- SystemUdpStatistics.cs
- TouchDevice.cs
- DesignOnlyAttribute.cs
- AsnEncodedData.cs
- LinkConverter.cs
- UnmanagedBitmapWrapper.cs
- ELinqQueryState.cs
- ExpandoClass.cs
- BindingList.cs
- listitem.cs
- XslAst.cs
- DateRangeEvent.cs
- SQLBoolean.cs
- DependencyProperty.cs
- GridPatternIdentifiers.cs
- SqlRemoveConstantOrderBy.cs
- ExponentialEase.cs
- StyleTypedPropertyAttribute.cs
- ComponentChangingEvent.cs
- Size.cs
- Parallel.cs
- StorageComplexTypeMapping.cs
- IssuanceLicense.cs
- ComponentEditorPage.cs
- CodeGenerator.cs
- SubclassTypeValidator.cs
- InvalidPropValue.cs
- List.cs
- ConfigXmlText.cs
- TypeProvider.cs
- ObjectPersistData.cs
- Funcletizer.cs
- TextTrailingWordEllipsis.cs
- XPathException.cs
- _SafeNetHandles.cs
- ToolStripDropDownItem.cs
- entityreference_tresulttype.cs
- FixedDocumentSequencePaginator.cs
- HandlerWithFactory.cs
- PrinterSettings.cs
- DataGridViewCellPaintingEventArgs.cs
- ToolStripItemCollection.cs
- ScrollChrome.cs
- PresentationAppDomainManager.cs
- DataGridViewTopRowAccessibleObject.cs
- _HeaderInfo.cs
- COM2IManagedPerPropertyBrowsingHandler.cs
- SqlUserDefinedTypeAttribute.cs
- TreeView.cs
- DbExpressionVisitor_TResultType.cs
- Synchronization.cs
- DataKeyCollection.cs