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
- Help.cs
- FontFamily.cs
- BufferedWebEventProvider.cs
- ThreadInterruptedException.cs
- _NetworkingPerfCounters.cs
- SafeFindHandle.cs
- RandomNumberGenerator.cs
- WebEvents.cs
- RNGCryptoServiceProvider.cs
- DifferencingCollection.cs
- SmtpReplyReaderFactory.cs
- SerializationHelper.cs
- XmlSchemaResource.cs
- CustomCredentialPolicy.cs
- DBCommand.cs
- ContentDisposition.cs
- DataGridPageChangedEventArgs.cs
- NotCondition.cs
- ChannelManagerHelpers.cs
- IntegerValidator.cs
- LocalizationCodeDomSerializer.cs
- SecurityTimestamp.cs
- DataRowComparer.cs
- ArrayElementGridEntry.cs
- DataDocumentXPathNavigator.cs
- SrgsSemanticInterpretationTag.cs
- PropertyIDSet.cs
- KeyGestureValueSerializer.cs
- ClientRoleProvider.cs
- Metafile.cs
- PropertyGridDesigner.cs
- RadioButton.cs
- HtmlMeta.cs
- WebPartsPersonalizationAuthorization.cs
- LinkTarget.cs
- SymbolDocumentGenerator.cs
- SqlLiftWhereClauses.cs
- SystemPens.cs
- DurableRuntimeValidator.cs
- XPathDocumentBuilder.cs
- DataGridViewImageCell.cs
- PermissionSetTriple.cs
- CreateUserWizard.cs
- Evaluator.cs
- ScrollBarAutomationPeer.cs
- ReadingWritingEntityEventArgs.cs
- RegexRunnerFactory.cs
- InOutArgument.cs
- Match.cs
- UnconditionalPolicy.cs
- XPathBuilder.cs
- ImmutablePropertyDescriptorGridEntry.cs
- Size3D.cs
- WebPartConnectionsConfigureVerb.cs
- AssemblyUtil.cs
- DiagnosticsConfiguration.cs
- Cursor.cs
- LinqDataSourceDeleteEventArgs.cs
- QilFactory.cs
- AttachmentCollection.cs
- InternalConfigEventArgs.cs
- AuthenticationException.cs
- TrustManagerPromptUI.cs
- _TimerThread.cs
- AsymmetricSignatureDeformatter.cs
- StrokeIntersection.cs
- EventProxy.cs
- WebServiceResponse.cs
- RemotingSurrogateSelector.cs
- BufferModesCollection.cs
- LicenseContext.cs
- GetReadStreamResult.cs
- QuaternionAnimation.cs
- TiffBitmapDecoder.cs
- TypeHelpers.cs
- SafeHandles.cs
- FixedSOMGroup.cs
- ReferencedCollectionType.cs
- XmlTextEncoder.cs
- DurableMessageDispatchInspector.cs
- Win32Native.cs
- BamlRecordReader.cs
- DataDesignUtil.cs
- OutputScopeManager.cs
- DataBoundControlActionList.cs
- GatewayIPAddressInformationCollection.cs
- DbReferenceCollection.cs
- WebServiceHandler.cs
- XmlSignatureManifest.cs
- shaper.cs
- ConnectionManagementElementCollection.cs
- TableHeaderCell.cs
- VersionUtil.cs
- Transform3D.cs
- HwndSourceKeyboardInputSite.cs
- PasswordValidationException.cs
- ListContractAdapter.cs
- PathNode.cs
- coordinatorscratchpad.cs
- COSERVERINFO.cs