Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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. // //----------------------------------------------------------------------------- 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- StringKeyFrameCollection.cs
- PerfService.cs
- RtfToXamlLexer.cs
- TdsParameterSetter.cs
- TreeBuilder.cs
- Identifier.cs
- DataPagerCommandEventArgs.cs
- CellIdBoolean.cs
- Geometry3D.cs
- Point4DValueSerializer.cs
- WebPartUtil.cs
- WindowsListViewGroup.cs
- RectangleF.cs
- SQLInt32.cs
- XmlSchemaFacet.cs
- ControlAdapter.cs
- HtmlUtf8RawTextWriter.cs
- autovalidator.cs
- SafeRightsManagementQueryHandle.cs
- SqlRewriteScalarSubqueries.cs
- Range.cs
- ObjectParameterCollection.cs
- AvTraceDetails.cs
- XPathSelectionIterator.cs
- ClientRoleProvider.cs
- BuildTopDownAttribute.cs
- TemplateBindingExpression.cs
- ProxyElement.cs
- _DisconnectOverlappedAsyncResult.cs
- TreeNodeClickEventArgs.cs
- RoleBoolean.cs
- DataGridViewRowPrePaintEventArgs.cs
- DesignerDataView.cs
- AQNBuilder.cs
- DynamicILGenerator.cs
- AsmxEndpointPickerExtension.cs
- AnchorEditor.cs
- ToolCreatedEventArgs.cs
- PointAnimationClockResource.cs
- WarningException.cs
- SqlXml.cs
- RectKeyFrameCollection.cs
- Mutex.cs
- SecondaryIndex.cs
- SmtpFailedRecipientsException.cs
- TextEffect.cs
- QueryComponents.cs
- ProbeRequestResponseAsyncResult.cs
- DataServiceProcessingPipeline.cs
- MatrixTransform3D.cs
- Int32CAMarshaler.cs
- Visual3D.cs
- BaseValidatorDesigner.cs
- IndentTextWriter.cs
- CachedBitmap.cs
- MD5CryptoServiceProvider.cs
- IBuiltInEvidence.cs
- Encoder.cs
- XmlToDatasetMap.cs
- PointAnimationUsingPath.cs
- CodeThrowExceptionStatement.cs
- Int32AnimationBase.cs
- DataGridViewCellStateChangedEventArgs.cs
- ToolTip.cs
- IsolatedStorageException.cs
- TabItemAutomationPeer.cs
- DesignerActionPanel.cs
- CompiledXpathExpr.cs
- XmlBoundElement.cs
- SqlNotificationRequest.cs
- PathParser.cs
- SqlBuilder.cs
- StorageComplexPropertyMapping.cs
- CryptoStream.cs
- EventsTab.cs
- ResetableIterator.cs
- CapiNative.cs
- HierarchicalDataBoundControlAdapter.cs
- OutputCacheEntry.cs
- Vector3D.cs
- DateTimeAutomationPeer.cs
- BypassElement.cs
- ToolBarPanel.cs
- MSAANativeProvider.cs
- InstanceDataCollection.cs
- RegexMatch.cs
- exports.cs
- ShaperBuffers.cs
- RelatedView.cs
- _ListenerRequestStream.cs
- TypeExtension.cs
- RadialGradientBrush.cs
- CodeStatementCollection.cs
- ParseElement.cs
- WebPartEventArgs.cs
- QilGenerator.cs
- TreeWalkHelper.cs
- Nullable.cs
- ListSourceHelper.cs
- EntityDataSourceContextCreatingEventArgs.cs