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
- mediaeventargs.cs
- ScriptingProfileServiceSection.cs
- ContentElementCollection.cs
- FloatUtil.cs
- OleCmdHelper.cs
- SqlResolver.cs
- LateBoundBitmapDecoder.cs
- CustomDictionarySources.cs
- MenuCommands.cs
- ItemChangedEventArgs.cs
- SpeechAudioFormatInfo.cs
- DataGridViewUtilities.cs
- DecodeHelper.cs
- SQLGuidStorage.cs
- DbDataRecord.cs
- AddDataControlFieldDialog.cs
- IndexObject.cs
- CombinedTcpChannel.cs
- FlowLayoutPanelDesigner.cs
- XamlToRtfParser.cs
- CodeAccessPermission.cs
- PageAsyncTaskManager.cs
- TextElementEnumerator.cs
- InitializationEventAttribute.cs
- AsymmetricKeyExchangeDeformatter.cs
- TabItemWrapperAutomationPeer.cs
- OverflowException.cs
- ProtocolState.cs
- ListViewDeleteEventArgs.cs
- ListMarkerSourceInfo.cs
- CharConverter.cs
- PolyQuadraticBezierSegment.cs
- ErrorInfoXmlDocument.cs
- BlockCollection.cs
- ContextMenuStripGroup.cs
- WindowsPrincipal.cs
- CacheAxisQuery.cs
- EntityDataSourceWrapperCollection.cs
- TagMapInfo.cs
- ColumnMapCopier.cs
- RenderTargetBitmap.cs
- XappLauncher.cs
- XPathDocument.cs
- FontSource.cs
- SelectionRange.cs
- UIAgentMonitor.cs
- SchemaDeclBase.cs
- XmlLoader.cs
- COM2PropertyBuilderUITypeEditor.cs
- MonikerBuilder.cs
- ReferencedCollectionType.cs
- UpdateCommand.cs
- PresentationSource.cs
- DesignerVerb.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- WebHttpSecurityElement.cs
- SmtpReplyReaderFactory.cs
- DesignerRegionMouseEventArgs.cs
- _BaseOverlappedAsyncResult.cs
- HotSpotCollection.cs
- FocusChangedEventArgs.cs
- RestrictedTransactionalPackage.cs
- ServiceHttpModule.cs
- IEnumerable.cs
- SoapSchemaMember.cs
- OfTypeExpression.cs
- Splitter.cs
- CodeExporter.cs
- BulletedList.cs
- HtmlForm.cs
- XmlTextAttribute.cs
- SettingsBase.cs
- SimpleType.cs
- RuntimeWrappedException.cs
- TraceInternal.cs
- Message.cs
- MonikerHelper.cs
- OdbcConnectionOpen.cs
- RoleManagerSection.cs
- BookmarkEventArgs.cs
- OrthographicCamera.cs
- HtmlInputCheckBox.cs
- SchemaCollectionCompiler.cs
- ListViewItemSelectionChangedEvent.cs
- QilVisitor.cs
- SettingsProperty.cs
- EntityProviderFactory.cs
- XmlAttributes.cs
- ButtonDesigner.cs
- DbParameterHelper.cs
- BounceEase.cs
- FixedElement.cs
- ForeignConstraint.cs
- SqlDataSourceCache.cs
- Pair.cs
- ToolStripGrip.cs
- WinFormsSecurity.cs
- FirstQueryOperator.cs
- CodeSubDirectory.cs
- RotateTransform.cs