Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / WebForms / System / Web / UI / Design / DesignerObject.cs / 1 / DesignerObject.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.Design { using System; using System.Collections; using System.Collections.Specialized; using System.ComponentModel; using System.ComponentModel.Design; ////// public abstract class DesignerObject : IServiceProvider { private ControlDesigner _designer; private string _name; private IDictionary _properties; protected DesignerObject(ControlDesigner designer, string name) { if (designer == null) { throw new ArgumentNullException("designer"); } if ((name == null) || (name.Length == 0)) { throw new ArgumentNullException("name"); } _designer = designer; _name = name; } public ControlDesigner Designer { get { return _designer; } } public string Name { get { return _name; } } public IDictionary Properties { get { if (_properties == null) { _properties = new HybridDictionary(); } return _properties; } } protected object GetService(Type serviceType) { IServiceProvider serviceProvider = _designer.Component.Site; if (serviceProvider != null) { return serviceProvider.GetService(serviceType); } return null; } #region Implementation of IServiceProvider object IServiceProvider.GetService(Type serviceType) { return GetService(serviceType); } #endregion } } // 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
- SecurityElement.cs
- _SafeNetHandles.cs
- TextRangeBase.cs
- TreeWalkHelper.cs
- recordstate.cs
- TimeoutException.cs
- ExclusiveHandleList.cs
- DataGrid.cs
- PermissionToken.cs
- _TLSstream.cs
- WindowsContainer.cs
- String.cs
- AuthenticationManager.cs
- NetworkInformationException.cs
- GridViewSelectEventArgs.cs
- Typography.cs
- TimeSpanOrInfiniteValidator.cs
- DataGridViewComboBoxEditingControl.cs
- ArcSegment.cs
- DataObjectEventArgs.cs
- DataRecord.cs
- NopReturnReader.cs
- Model3DCollection.cs
- DefaultAssemblyResolver.cs
- DockAndAnchorLayout.cs
- ScrollItemPatternIdentifiers.cs
- HttpsTransportElement.cs
- ProvidePropertyAttribute.cs
- DomainUpDown.cs
- ConstraintCollection.cs
- FileRecordSequenceHelper.cs
- GlyphsSerializer.cs
- Boolean.cs
- AutomationFocusChangedEventArgs.cs
- BufferBuilder.cs
- AssemblyCache.cs
- CommandBinding.cs
- AutomationElementCollection.cs
- ListView.cs
- TextServicesLoader.cs
- CalculatedColumn.cs
- X509Utils.cs
- XmlSchemaComplexContentExtension.cs
- MemberProjectionIndex.cs
- DisableDpiAwarenessAttribute.cs
- SuppressIldasmAttribute.cs
- SiteMapNodeItem.cs
- WebPartMenu.cs
- EntityContainer.cs
- InstanceStoreQueryResult.cs
- CommandBinding.cs
- SupportingTokenChannel.cs
- HttpInputStream.cs
- WindowsAuthenticationModule.cs
- NullableDecimalSumAggregationOperator.cs
- CookieHandler.cs
- Shape.cs
- WebPartTransformerAttribute.cs
- StatusBarDrawItemEvent.cs
- Encoder.cs
- ConditionChanges.cs
- XmlArrayItemAttributes.cs
- LogExtent.cs
- VolatileEnlistmentState.cs
- FrameworkRichTextComposition.cs
- MediaTimeline.cs
- SqlParameterizer.cs
- TimeEnumHelper.cs
- TextTreeTextNode.cs
- JsonServiceDocumentSerializer.cs
- DataMisalignedException.cs
- SqlDataSourceCommandEventArgs.cs
- ApplicationFileParser.cs
- AvTraceFormat.cs
- XPathQilFactory.cs
- DataBindingCollection.cs
- ClientFormsAuthenticationCredentials.cs
- StringReader.cs
- TableStyle.cs
- GlobalAclOperationRequirement.cs
- QuestionEventArgs.cs
- ServiceCredentialsElement.cs
- TextTreeRootTextBlock.cs
- MarkupExtensionParser.cs
- LineVisual.cs
- LogLogRecord.cs
- QuotedPrintableStream.cs
- EventSource.cs
- ObjectSecurity.cs
- BuildProviderCollection.cs
- AllMembershipCondition.cs
- SqlReferenceCollection.cs
- ToolStripDropDown.cs
- StylusTip.cs
- CustomValidator.cs
- TemplateEditingVerb.cs
- DesignerLoader.cs
- FlowPosition.cs
- ListViewHitTestInfo.cs
- ObjectDataSourceFilteringEventArgs.cs