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
- RegularExpressionValidator.cs
- FunctionUpdateCommand.cs
- SafeNativeMethods.cs
- DecimalAnimationUsingKeyFrames.cs
- Context.cs
- Convert.cs
- WrappedIUnknown.cs
- ExceptionUtil.cs
- ExecutedRoutedEventArgs.cs
- StyleSheetComponentEditor.cs
- SafeTimerHandle.cs
- ConnectionPoint.cs
- SHA256.cs
- ErrorStyle.cs
- LogManagementAsyncResult.cs
- CompoundFileReference.cs
- EastAsianLunisolarCalendar.cs
- PageCodeDomTreeGenerator.cs
- NotifyIcon.cs
- SHA384Managed.cs
- DecoderBestFitFallback.cs
- FilteredReadOnlyMetadataCollection.cs
- HitTestResult.cs
- StreamInfo.cs
- ToolStripSystemRenderer.cs
- OdbcInfoMessageEvent.cs
- RepeaterItemCollection.cs
- XPathParser.cs
- SessionSwitchEventArgs.cs
- SQLInt64Storage.cs
- SqlDataSourceCustomCommandPanel.cs
- TransformConverter.cs
- Compress.cs
- ServiceConfigurationTraceRecord.cs
- MemberAccessException.cs
- SystemBrushes.cs
- Renderer.cs
- LineBreakRecord.cs
- InputBinder.cs
- ProcessModuleDesigner.cs
- ToolStripCollectionEditor.cs
- SoapRpcServiceAttribute.cs
- PeerCredentialElement.cs
- RuntimeUtils.cs
- WizardStepBase.cs
- ObjectCacheHost.cs
- ValidationError.cs
- QueryReaderSettings.cs
- MaskPropertyEditor.cs
- QilInvokeLateBound.cs
- MachineKeyConverter.cs
- WindowsFont.cs
- PrintPreviewControl.cs
- SpecialNameAttribute.cs
- FormsAuthenticationCredentials.cs
- ApplicationFileParser.cs
- ServiceModelStringsVersion1.cs
- Point.cs
- DockProviderWrapper.cs
- ListBoxChrome.cs
- NonPrimarySelectionGlyph.cs
- LinqDataSourceSelectEventArgs.cs
- RC2.cs
- Enum.cs
- CdpEqualityComparer.cs
- GacUtil.cs
- ValidationSummary.cs
- X509CertificateChain.cs
- StrongNameKeyPair.cs
- ListViewGroup.cs
- GridViewEditEventArgs.cs
- ChannelHandler.cs
- ClientConfigurationHost.cs
- dataobject.cs
- FileLevelControlBuilderAttribute.cs
- SparseMemoryStream.cs
- HttpModulesSection.cs
- ImageDrawing.cs
- Symbol.cs
- NumberFunctions.cs
- EventPropertyMap.cs
- RequestCacheManager.cs
- ServiceMetadataBehavior.cs
- UriExt.cs
- relpropertyhelper.cs
- InnerItemCollectionView.cs
- CompareInfo.cs
- RunInstallerAttribute.cs
- WorkflowApplicationTerminatedException.cs
- StringFormat.cs
- SspiSafeHandles.cs
- ThrowHelper.cs
- TransactionFlowElement.cs
- NullableLongSumAggregationOperator.cs
- FixedPageStructure.cs
- ZipIOExtraFieldPaddingElement.cs
- KeysConverter.cs
- RelationshipEnd.cs
- DiagnosticsConfigurationHandler.cs
- MimeMultiPart.cs