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
- TabPanel.cs
- UrlAuthorizationModule.cs
- OrCondition.cs
- GridErrorDlg.cs
- EncodingDataItem.cs
- ImageCodecInfoPrivate.cs
- TextServicesContext.cs
- OdbcInfoMessageEvent.cs
- MenuDesigner.cs
- DataGridViewImageCell.cs
- Repeater.cs
- WebPartConnectionsCancelEventArgs.cs
- CommandField.cs
- BitmapCodecInfo.cs
- PartitionerStatic.cs
- ContextMarshalException.cs
- _ListenerAsyncResult.cs
- MemoryFailPoint.cs
- PersistenceException.cs
- FormsAuthenticationCredentials.cs
- ResolveNameEventArgs.cs
- handlecollector.cs
- FixedDSBuilder.cs
- RowParagraph.cs
- ContentValidator.cs
- DynamicValueConverter.cs
- MemoryStream.cs
- UnsafeNativeMethods.cs
- HtmlInputHidden.cs
- GeneralTransform3DCollection.cs
- RestClientProxyHandler.cs
- Exceptions.cs
- AnimationLayer.cs
- SemanticAnalyzer.cs
- FrameAutomationPeer.cs
- GuidelineCollection.cs
- ObjectDataSourceStatusEventArgs.cs
- BitmapEffect.cs
- Int64AnimationBase.cs
- AttributeQuery.cs
- WindowInteractionStateTracker.cs
- SetMemberBinder.cs
- OracleRowUpdatedEventArgs.cs
- OpCellTreeNode.cs
- XmlElement.cs
- CharAnimationBase.cs
- InputBindingCollection.cs
- ToolboxBitmapAttribute.cs
- PkcsUtils.cs
- ComponentManagerBroker.cs
- SortableBindingList.cs
- WebPartDisplayModeCollection.cs
- ApplyImportsAction.cs
- NullableLongSumAggregationOperator.cs
- Preprocessor.cs
- IndexedString.cs
- DesignerAutoFormatCollection.cs
- Propagator.JoinPropagator.cs
- WebPartEditorApplyVerb.cs
- GacUtil.cs
- OleDbMetaDataFactory.cs
- FileDialog.cs
- codemethodreferenceexpression.cs
- RegionInfo.cs
- BufferedStream2.cs
- BlurBitmapEffect.cs
- NameTable.cs
- HtmlTableRowCollection.cs
- SessionStateModule.cs
- TypeInitializationException.cs
- CriticalHandle.cs
- QuaternionRotation3D.cs
- InputManager.cs
- EntityCodeGenerator.cs
- KoreanCalendar.cs
- WebControlsSection.cs
- COM2PropertyPageUITypeConverter.cs
- DataContractSerializerSection.cs
- BitConverter.cs
- MailWebEventProvider.cs
- DataObjectFieldAttribute.cs
- PointAnimationClockResource.cs
- ClickablePoint.cs
- CollectionBuilder.cs
- cookieexception.cs
- PictureBox.cs
- XmlCharCheckingReader.cs
- CqlLexerHelpers.cs
- BrowserDefinitionCollection.cs
- ThicknessAnimationBase.cs
- GeneratedCodeAttribute.cs
- DataGridViewCellParsingEventArgs.cs
- NumberSubstitution.cs
- DeploymentSectionCache.cs
- SocketInformation.cs
- MachineKeySection.cs
- WindowsRichEdit.cs
- DrawListViewSubItemEventArgs.cs
- EventLogEntry.cs
- LinkLabelLinkClickedEvent.cs