Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / ndp / fx / src / xsp / System / Web / UI / WebParts / WebPartDeleteVerb.cs / 1 / WebPartDeleteVerb.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls.WebParts { using System; internal sealed class WebPartDeleteVerb : WebPartActionVerb { private string _defaultDescription; private string _defaultText; private string DefaultDescription { get { if (_defaultDescription == null) { _defaultDescription = SR.GetString(SR.WebPartDeleteVerb_Description); } return _defaultDescription; } } private string DefaultText { get { if (_defaultText == null) { _defaultText = SR.GetString(SR.WebPartDeleteVerb_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.WebPartDeleteVerb_Description) ] public override string Description { get { object o = ViewState["Description"]; return (o == null) ? DefaultDescription : (string)o; } set { ViewState["Description"] = value; } } [ WebSysDefaultValue(SR.WebPartDeleteVerb_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 WebPartDeleteVerb : WebPartActionVerb { private string _defaultDescription; private string _defaultText; private string DefaultDescription { get { if (_defaultDescription == null) { _defaultDescription = SR.GetString(SR.WebPartDeleteVerb_Description); } return _defaultDescription; } } private string DefaultText { get { if (_defaultText == null) { _defaultText = SR.GetString(SR.WebPartDeleteVerb_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.WebPartDeleteVerb_Description) ] public override string Description { get { object o = ViewState["Description"]; return (o == null) ? DefaultDescription : (string)o; } set { ViewState["Description"] = value; } } [ WebSysDefaultValue(SR.WebPartDeleteVerb_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
- PersonalizablePropertyEntry.cs
- SqlDataSourceConfigureSortForm.cs
- ResourcePermissionBase.cs
- UriPrefixTable.cs
- InvalidPipelineStoreException.cs
- mansign.cs
- IntAverageAggregationOperator.cs
- TraceLog.cs
- XPathAxisIterator.cs
- HttpCachePolicyBase.cs
- ServicePointManagerElement.cs
- FileClassifier.cs
- StyleSheetComponentEditor.cs
- ManipulationBoundaryFeedbackEventArgs.cs
- SmtpAuthenticationManager.cs
- ListBox.cs
- IImplicitResourceProvider.cs
- CommandField.cs
- OdbcRowUpdatingEvent.cs
- ParenExpr.cs
- DbProviderFactory.cs
- ImageDrawing.cs
- ConstraintStruct.cs
- StickyNoteHelper.cs
- ToolStripLabel.cs
- FontEmbeddingManager.cs
- Matrix3DStack.cs
- RuleSetReference.cs
- DataGridViewLayoutData.cs
- ThrowHelper.cs
- CompilerGeneratedAttribute.cs
- VBCodeProvider.cs
- MenuCommand.cs
- StrokeNodeData.cs
- bidPrivateBase.cs
- StatusBarItem.cs
- CodeAttributeDeclarationCollection.cs
- TextServicesCompartmentEventSink.cs
- ResourceAttributes.cs
- XmlConvert.cs
- SimpleParser.cs
- GcHandle.cs
- InputLanguageSource.cs
- GradientBrush.cs
- EpmSyndicationContentSerializer.cs
- CodeSubDirectoriesCollection.cs
- PrimitiveList.cs
- PermissionToken.cs
- PropagatorResult.cs
- DataGridTextBoxColumn.cs
- ReaderContextStackData.cs
- TimeIntervalCollection.cs
- WindowsListViewSubItem.cs
- DiscoveryDocumentSerializer.cs
- TimelineGroup.cs
- HwndSubclass.cs
- FieldAccessException.cs
- PieceDirectory.cs
- NativeMethods.cs
- SqlInternalConnectionSmi.cs
- XXXOnTypeBuilderInstantiation.cs
- Hex.cs
- CodeIndexerExpression.cs
- PartialCachingControl.cs
- DataSysAttribute.cs
- SafeEventHandle.cs
- sitestring.cs
- DataTableReaderListener.cs
- DesignerMetadata.cs
- PreviousTrackingServiceAttribute.cs
- HebrewNumber.cs
- WebPartTransformerCollection.cs
- SafeWaitHandle.cs
- Splitter.cs
- CurrentChangingEventManager.cs
- EndpointAddress10.cs
- CodeMemberProperty.cs
- InvalidEnumArgumentException.cs
- CommandDevice.cs
- AppSecurityManager.cs
- SourceFileBuildProvider.cs
- _OverlappedAsyncResult.cs
- ItemCheckEvent.cs
- UIPropertyMetadata.cs
- GPPOINT.cs
- ErrorHandler.cs
- ReliableReplySessionChannel.cs
- FormsIdentity.cs
- ButtonColumn.cs
- TreePrinter.cs
- BooleanFunctions.cs
- Parsers.cs
- ComboBoxRenderer.cs
- DrawingAttributes.cs
- PreloadedPackages.cs
- ConfigurationValidatorBase.cs
- RenderingEventArgs.cs
- DataProviderNameConverter.cs
- OutOfMemoryException.cs
- ResourceContainer.cs