Code:
/ FX-1434 / FX-1434 / 1.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
- MasterPageParser.cs
- HttpWrapper.cs
- Stack.cs
- Rights.cs
- ColorMatrix.cs
- X509CertificateRecipientServiceCredential.cs
- RightsManagementEncryptionTransform.cs
- XmlByteStreamReader.cs
- ScrollChangedEventArgs.cs
- StaticExtension.cs
- MessageQueue.cs
- ProtocolReflector.cs
- CreateUserWizard.cs
- ExecutedRoutedEventArgs.cs
- ValidatedControlConverter.cs
- Encoding.cs
- AlphabeticalEnumConverter.cs
- XmlNamespaceDeclarationsAttribute.cs
- Vector3DConverter.cs
- DocumentReference.cs
- ReflectionUtil.cs
- Matrix3DValueSerializer.cs
- EntityType.cs
- WizardForm.cs
- TableCellCollection.cs
- Facet.cs
- SmiEventSink.cs
- XmlLoader.cs
- SafeHandle.cs
- MenuItemStyle.cs
- BindingManagerDataErrorEventArgs.cs
- TagPrefixAttribute.cs
- WindowsScrollBar.cs
- Int32Converter.cs
- NotifyCollectionChangedEventArgs.cs
- GeometryGroup.cs
- TemplateColumn.cs
- ButtonBaseAutomationPeer.cs
- PenThreadWorker.cs
- IPipelineRuntime.cs
- UnmanagedMarshal.cs
- LinqDataSourceStatusEventArgs.cs
- ReflectPropertyDescriptor.cs
- LightweightEntityWrapper.cs
- ToggleButtonAutomationPeer.cs
- _IPv4Address.cs
- ExtentCqlBlock.cs
- AnnotationAdorner.cs
- ComAdminWrapper.cs
- Function.cs
- TextBounds.cs
- XmlEntity.cs
- SqlExpressionNullability.cs
- AssemblyHelper.cs
- ProcessHostServerConfig.cs
- MultiPropertyDescriptorGridEntry.cs
- MatchingStyle.cs
- RequestQueryParser.cs
- ParameterCollectionEditorForm.cs
- DbgUtil.cs
- WebPartDisplayModeCollection.cs
- SoapTypeAttribute.cs
- CallbackHandler.cs
- OleDbSchemaGuid.cs
- TypedOperationInfo.cs
- DependencyPropertyDescriptor.cs
- SqlDataSourceStatusEventArgs.cs
- propertyentry.cs
- HandlerBase.cs
- FolderBrowserDialog.cs
- ItemsChangedEventArgs.cs
- EncryptedXml.cs
- UpdateCompiler.cs
- ListBoxItem.cs
- elementinformation.cs
- ListViewUpdatedEventArgs.cs
- MailFileEditor.cs
- NumberEdit.cs
- ExpressionBindingCollection.cs
- LightweightCodeGenerator.cs
- ScriptControlManager.cs
- OverlappedAsyncResult.cs
- DbSetClause.cs
- HtmlAnchor.cs
- FactoryMaker.cs
- DiscoveryClientReferences.cs
- SerializerWriterEventHandlers.cs
- ServerProtocol.cs
- FlowDocumentFormatter.cs
- CornerRadiusConverter.cs
- HttpFileCollection.cs
- SqlServices.cs
- TabPage.cs
- ClientEventManager.cs
- UniformGrid.cs
- StorageScalarPropertyMapping.cs
- InkCanvas.cs
- AccessDataSource.cs
- ListViewDeletedEventArgs.cs
- SynchronizationContextHelper.cs