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 / WebPartCloseVerb.cs / 1 / WebPartCloseVerb.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls.WebParts { using System; internal sealed class WebPartCloseVerb : WebPartActionVerb { private string _defaultDescription; private string _defaultText; private string DefaultDescription { get { if (_defaultDescription == null) { _defaultDescription = SR.GetString(SR.WebPartCloseVerb_Description); } return _defaultDescription; } } private string DefaultText { get { if (_defaultText == null) { _defaultText = SR.GetString(SR.WebPartCloseVerb_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.WebPartCloseVerb_Description) ] public override string Description { get { object o = ViewState["Description"]; return (o == null) ? DefaultDescription : (string)o; } set { ViewState["Description"] = value; } } [ WebSysDefaultValue(SR.WebPartCloseVerb_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 WebPartCloseVerb : WebPartActionVerb { private string _defaultDescription; private string _defaultText; private string DefaultDescription { get { if (_defaultDescription == null) { _defaultDescription = SR.GetString(SR.WebPartCloseVerb_Description); } return _defaultDescription; } } private string DefaultText { get { if (_defaultText == null) { _defaultText = SR.GetString(SR.WebPartCloseVerb_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.WebPartCloseVerb_Description) ] public override string Description { get { object o = ViewState["Description"]; return (o == null) ? DefaultDescription : (string)o; } set { ViewState["Description"] = value; } } [ WebSysDefaultValue(SR.WebPartCloseVerb_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
- Operator.cs
- RootBuilder.cs
- Size3DConverter.cs
- CredentialCache.cs
- IndentTextWriter.cs
- FtpRequestCacheValidator.cs
- CmsInterop.cs
- Documentation.cs
- ZoneLinkButton.cs
- DocComment.cs
- TraceListeners.cs
- BaseAsyncResult.cs
- LinkArea.cs
- ButtonChrome.cs
- UnaryNode.cs
- SqlGatherConsumedAliases.cs
- ScriptingSectionGroup.cs
- PropertyGridEditorPart.cs
- StatusBar.cs
- Viewport3DAutomationPeer.cs
- ConsoleEntryPoint.cs
- PolygonHotSpot.cs
- SqlRowUpdatingEvent.cs
- MsmqIntegrationAppDomainProtocolHandler.cs
- CompilerError.cs
- WSSecurityPolicy12.cs
- WorkflowNamespace.cs
- ChangePasswordDesigner.cs
- InvalidateEvent.cs
- CheckBox.cs
- TripleDES.cs
- ZipIOExtraFieldPaddingElement.cs
- SortDescription.cs
- SynchronizedDispatch.cs
- Pair.cs
- DomNameTable.cs
- WebEncodingValidator.cs
- DatePickerDateValidationErrorEventArgs.cs
- SqlDataAdapter.cs
- XmlKeywords.cs
- DictionaryContent.cs
- AtomServiceDocumentSerializer.cs
- OracleString.cs
- OleDbRowUpdatingEvent.cs
- TemplateGroupCollection.cs
- IBuiltInEvidence.cs
- CookielessHelper.cs
- RepeaterItemCollection.cs
- RuleInfoComparer.cs
- DbProviderFactoriesConfigurationHandler.cs
- webeventbuffer.cs
- NumberFunctions.cs
- Boolean.cs
- NavigationFailedEventArgs.cs
- RuntimeHelpers.cs
- WebPartConnection.cs
- BooleanKeyFrameCollection.cs
- DelegatingConfigHost.cs
- StylusButtonCollection.cs
- ComponentResourceKey.cs
- IISUnsafeMethods.cs
- EmbeddedMailObject.cs
- ProfileSettings.cs
- StyleSelector.cs
- ActivityWithResultConverter.cs
- Vector3DConverter.cs
- PointCollection.cs
- TextBoxView.cs
- TypePresenter.xaml.cs
- XmlValidatingReaderImpl.cs
- DBCommandBuilder.cs
- NameValueCollection.cs
- StickyNoteAnnotations.cs
- PointCollection.cs
- RuntimeWrappedException.cs
- ProfileService.cs
- WindowsIdentity.cs
- DataList.cs
- HandlerBase.cs
- DbFunctionCommandTree.cs
- FindCompletedEventArgs.cs
- EncoderParameter.cs
- TextServicesCompartmentEventSink.cs
- SettingsAttributes.cs
- WindowsRegion.cs
- dataSvcMapFileLoader.cs
- WindowsRegion.cs
- SQLByteStorage.cs
- ConnectionProviderAttribute.cs
- XMLUtil.cs
- DataSourceHelper.cs
- ImageFormat.cs
- Literal.cs
- DataSourceXmlElementAttribute.cs
- ClassValidator.cs
- ColorConvertedBitmapExtension.cs
- AnnotationResourceChangedEventArgs.cs
- UnconditionalPolicy.cs
- FieldBuilder.cs
- SafeNativeMethods.cs