Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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; } } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DataColumn.cs
- CheckBoxField.cs
- QueryableDataSource.cs
- _ContextAwareResult.cs
- UnaryNode.cs
- WhitespaceRule.cs
- TextPointerBase.cs
- WindowsTitleBar.cs
- ScrollPattern.cs
- DescriptionAttribute.cs
- RadioButtonFlatAdapter.cs
- XamlWriter.cs
- BoundColumn.cs
- DataFormats.cs
- SmtpReplyReader.cs
- DateTimeOffsetConverter.cs
- WorkflowQueue.cs
- CodeRegionDirective.cs
- SafeReversePInvokeHandle.cs
- ThreadAbortException.cs
- ScopelessEnumAttribute.cs
- WebSysDefaultValueAttribute.cs
- ThicknessAnimationBase.cs
- HttpException.cs
- DataBoundControlAdapter.cs
- ToolStripOverflow.cs
- XmlException.cs
- DataRowExtensions.cs
- AssemblyBuilderData.cs
- ServiceObjectContainer.cs
- FontStyles.cs
- UnlockInstanceCommand.cs
- StringAnimationBase.cs
- BoundField.cs
- TextElementAutomationPeer.cs
- SchemaTypeEmitter.cs
- UIElementIsland.cs
- XmlCharCheckingWriter.cs
- UserValidatedEventArgs.cs
- EntryWrittenEventArgs.cs
- UrlAuthorizationModule.cs
- AttachmentCollection.cs
- EdmToObjectNamespaceMap.cs
- ConfigXmlComment.cs
- IsolatedStorageFileStream.cs
- ColumnReorderedEventArgs.cs
- SystemFonts.cs
- LazyTextWriterCreator.cs
- ScopelessEnumAttribute.cs
- TextLine.cs
- ToolStripPanelRow.cs
- PrePrepareMethodAttribute.cs
- SecurityState.cs
- FullTextState.cs
- PrintPreviewGraphics.cs
- BuilderPropertyEntry.cs
- ProfileManager.cs
- EmbeddedMailObject.cs
- AssemblyCollection.cs
- ResourceKey.cs
- WebPartCollection.cs
- DesignSurfaceCollection.cs
- IImplicitResourceProvider.cs
- XPathNodeIterator.cs
- OleDbDataReader.cs
- UpdateExpressionVisitor.cs
- ImageMap.cs
- DrawingContext.cs
- FixedSOMFixedBlock.cs
- SafeMemoryMappedFileHandle.cs
- ChangeToolStripParentVerb.cs
- LocationSectionRecord.cs
- EnumBuilder.cs
- HandlerFactoryCache.cs
- FileChangesMonitor.cs
- QueryCursorEventArgs.cs
- NamespaceInfo.cs
- PreparingEnlistment.cs
- TextureBrush.cs
- Nullable.cs
- TextMarkerSource.cs
- CmsInterop.cs
- CodeGotoStatement.cs
- TagPrefixInfo.cs
- ServiceOperationParameter.cs
- While.cs
- SqlTriggerAttribute.cs
- IncrementalReadDecoders.cs
- ColumnMapCopier.cs
- RichTextBoxConstants.cs
- RelatedView.cs
- Separator.cs
- PerfCounters.cs
- HyperLinkColumn.cs
- Image.cs
- FormViewInsertedEventArgs.cs
- HttpModuleActionCollection.cs
- DesignerDataTableBase.cs
- AuthStoreRoleProvider.cs
- Transform3DGroup.cs