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
- CompensableActivity.cs
- InvalidOperationException.cs
- FrameworkContextData.cs
- ColumnTypeConverter.cs
- TableRowGroup.cs
- SystemIPGlobalProperties.cs
- AssemblyUtil.cs
- DataMisalignedException.cs
- Matrix3DStack.cs
- SoapFault.cs
- SystemMulticastIPAddressInformation.cs
- XmlEventCache.cs
- DbTransaction.cs
- GenerateScriptTypeAttribute.cs
- Context.cs
- SessionStateItemCollection.cs
- ItemCollection.cs
- TypeUnloadedException.cs
- BaseConfigurationRecord.cs
- ToolStripSeparator.cs
- ColorTransformHelper.cs
- TypeDescriptorContext.cs
- ValidationHelper.cs
- MailAddressCollection.cs
- NotSupportedException.cs
- InvokePattern.cs
- RNGCryptoServiceProvider.cs
- Select.cs
- Preprocessor.cs
- SafeTokenHandle.cs
- XamlPathDataSerializer.cs
- DragEventArgs.cs
- XmlUtilWriter.cs
- SBCSCodePageEncoding.cs
- ValidatedControlConverter.cs
- QuaternionAnimationUsingKeyFrames.cs
- HttpPostProtocolReflector.cs
- ResponseBodyWriter.cs
- AVElementHelper.cs
- SystemException.cs
- InputGestureCollection.cs
- PerfCounters.cs
- Model3D.cs
- Hex.cs
- HtmlUtf8RawTextWriter.cs
- HandledEventArgs.cs
- CroppedBitmap.cs
- ListenerElementsCollection.cs
- TreeViewEvent.cs
- IgnorePropertiesAttribute.cs
- SelectiveScrollingGrid.cs
- PkcsUtils.cs
- StandardOleMarshalObject.cs
- CompositeDuplexBindingElementImporter.cs
- EntityDataSourceDesignerHelper.cs
- cookieexception.cs
- MimeTypePropertyAttribute.cs
- assemblycache.cs
- MessageSecurityOverHttpElement.cs
- RegularExpressionValidator.cs
- Publisher.cs
- GlobalizationAssembly.cs
- DataSourceCacheDurationConverter.cs
- XPathNavigatorReader.cs
- AsyncOperationManager.cs
- AsymmetricKeyExchangeFormatter.cs
- PersonalizationProvider.cs
- AttributedMetaModel.cs
- ClientSideQueueItem.cs
- WorkflowOperationContext.cs
- DiagnosticTraceRecords.cs
- MenuItemBinding.cs
- ISessionStateStore.cs
- ObjectSecurity.cs
- Point3DIndependentAnimationStorage.cs
- CachedBitmap.cs
- SafeHandle.cs
- PropertyOverridesTypeEditor.cs
- LowerCaseStringConverter.cs
- PolyLineSegment.cs
- Binding.cs
- SQLRoleProvider.cs
- ObjectListItemCollection.cs
- XmlWrappingReader.cs
- PropagationProtocolsTracing.cs
- EventWaitHandle.cs
- ScriptIgnoreAttribute.cs
- Thread.cs
- FileDialog_Vista.cs
- Camera.cs
- CommandBinding.cs
- WriteTimeStream.cs
- BaseDataBoundControl.cs
- WebBrowser.cs
- FrameworkTextComposition.cs
- EventLogPermission.cs
- LicenseManager.cs
- WorkflowElementDialog.cs
- PrtTicket_Public_Simple.cs
- TimeSpanStorage.cs