Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / xsp / System / Web / UI / WebParts / WebPartEditorApplyVerb.cs / 1 / WebPartEditorApplyVerb.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Web.UI.WebControls.WebParts {
using System;
internal sealed class WebPartEditorApplyVerb : WebPartActionVerb {
// 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.WebPartEditorApplyVerb_Description)
]
public override string Description {
get {
object o = ViewState["Description"];
return (o == null) ? SR.GetString(SR.WebPartEditorApplyVerb_Description) : (string)o;
}
set {
ViewState["Description"] = value;
}
}
[
WebSysDefaultValue(SR.WebPartEditorApplyVerb_Text)
]
public override string Text {
get {
object o = ViewState["Text"];
return (o == null) ? SR.GetString(SR.WebPartEditorApplyVerb_Text) : (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 WebPartEditorApplyVerb : WebPartActionVerb {
// 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.WebPartEditorApplyVerb_Description)
]
public override string Description {
get {
object o = ViewState["Description"];
return (o == null) ? SR.GetString(SR.WebPartEditorApplyVerb_Description) : (string)o;
}
set {
ViewState["Description"] = value;
}
}
[
WebSysDefaultValue(SR.WebPartEditorApplyVerb_Text)
]
public override string Text {
get {
object o = ViewState["Text"];
return (o == null) ? SR.GetString(SR.WebPartEditorApplyVerb_Text) : (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
- ProcessHostConfigUtils.cs
- unitconverter.cs
- ServiceOperationViewControl.cs
- tooltip.cs
- EmbeddedObject.cs
- WindowsUserNameSecurityTokenAuthenticator.cs
- SocketSettings.cs
- DataGridViewCheckBoxCell.cs
- AutomationAttributeInfo.cs
- ProgressBar.cs
- DecimalAnimationUsingKeyFrames.cs
- _FtpDataStream.cs
- ClosableStream.cs
- ParseHttpDate.cs
- XPathScanner.cs
- XmlAttributeCollection.cs
- DPCustomTypeDescriptor.cs
- ParenExpr.cs
- UnsafeNativeMethods.cs
- ConfigurationSettings.cs
- GeneratedCodeAttribute.cs
- EncryptedPackageFilter.cs
- BuildProviderUtils.cs
- DBBindings.cs
- PatternMatcher.cs
- WebPartChrome.cs
- InternalConfigHost.cs
- SelectionHighlightInfo.cs
- ConfigXmlReader.cs
- KeyFrames.cs
- ObjectDataSourceMethodEventArgs.cs
- SqlFacetAttribute.cs
- MonthCalendar.cs
- RegisteredScript.cs
- ThousandthOfEmRealPoints.cs
- HitTestDrawingContextWalker.cs
- ActivityDesigner.cs
- GatewayIPAddressInformationCollection.cs
- Point3D.cs
- Vector3DCollection.cs
- RoutedEventHandlerInfo.cs
- EasingFunctionBase.cs
- HwndSource.cs
- SpellerStatusTable.cs
- CompiledQueryCacheEntry.cs
- SessionStateModule.cs
- AutomationElement.cs
- WebZone.cs
- HttpCachePolicyElement.cs
- MexServiceChannelBuilder.cs
- XmlWriterDelegator.cs
- MetadataStore.cs
- QilPatternFactory.cs
- AccessText.cs
- InnerItemCollectionView.cs
- Transform.cs
- IUnknownConstantAttribute.cs
- ResXResourceReader.cs
- SqlCacheDependencyDatabase.cs
- SqlTriggerAttribute.cs
- ResourceProviderFactory.cs
- CultureSpecificStringDictionary.cs
- ResourceReader.cs
- DateTimeConverter.cs
- TimestampInformation.cs
- RequestQueue.cs
- ProfileSettingsCollection.cs
- CodeExpressionStatement.cs
- BackStopAuthenticationModule.cs
- ResourceCodeDomSerializer.cs
- Multiply.cs
- SystemResourceHost.cs
- _NetworkingPerfCounters.cs
- Renderer.cs
- CounterSampleCalculator.cs
- EventInfo.cs
- InternalDuplexBindingElement.cs
- GeometryDrawing.cs
- TreePrinter.cs
- AppDomainManager.cs
- SettingsBindableAttribute.cs
- TextSpanModifier.cs
- TdsParserStateObject.cs
- StreamReader.cs
- RelationshipWrapper.cs
- StringSource.cs
- FilteredSchemaElementLookUpTable.cs
- PeerCollaboration.cs
- SchemaImporterExtension.cs
- XmlLangPropertyAttribute.cs
- SoapProtocolReflector.cs
- DocComment.cs
- SoapAttributeOverrides.cs
- LicenseException.cs
- DESCryptoServiceProvider.cs
- linebase.cs
- WebResourceUtil.cs
- MemoryRecordBuffer.cs
- WebPartMenuStyle.cs
- ConfigurationElement.cs