Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / WinForms / System / WinForms / Design / DataGridViewComponentPropertyGridSite.cs / 1 / DataGridViewComponentPropertyGridSite.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.Windows.Forms.Design { using System; using System.Design; using System.CodeDom; using System.Collections; using System.Collections.Specialized; using System.ComponentModel; using System.ComponentModel.Design; using System.ComponentModel.Design.Serialization; using System.Diagnostics; using System.Reflection; using System.Windows.Forms; internal class DataGridViewComponentPropertyGridSite : ISite { private IServiceProvider sp; private IComponent comp; private bool inGetService = false; public DataGridViewComponentPropertyGridSite(IServiceProvider sp, IComponent comp) { this.sp = sp; this.comp = comp; } /** The component sited by this component site. */ ////// /// public IComponent Component {get {return comp;}} /** The container in which the component is sited. */ ///When implemented by a class, gets the component associated with the ///. /// /// public IContainer Container {get {return null;}} /** Indicates whether the component is in design mode. */ ///When implemented by a class, gets the container associated with the ///. /// /// public bool DesignMode {get {return false;}} /** * The name of the component. */ ///When implemented by a class, determines whether the component is in design mode. ////// /// public String Name { get {return null;} set {} } public object GetService(Type t) { if (!inGetService && sp != null) { try { inGetService = true; return sp.GetService(t); } finally { inGetService = false; } } return null; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.When implemented by a class, gets or sets the name of /// the component associated with the ///.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SmiTypedGetterSetter.cs
- GeometryGroup.cs
- ControlType.cs
- XmlWriterSettings.cs
- ProjectionQueryOptionExpression.cs
- MaskedTextBox.cs
- Predicate.cs
- TableLayout.cs
- EventEntry.cs
- ProfileManager.cs
- RouteParser.cs
- ConstraintCollection.cs
- Italic.cs
- ClientConfigurationSystem.cs
- PointLightBase.cs
- DataGridViewBand.cs
- MDIWindowDialog.cs
- DataGridRowHeaderAutomationPeer.cs
- DataBoundLiteralControl.cs
- HttpConfigurationSystem.cs
- TTSEngineProxy.cs
- TemplateControlCodeDomTreeGenerator.cs
- DbConnectionPoolOptions.cs
- DeviceContext.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- MultipleViewProviderWrapper.cs
- MetadataArtifactLoaderResource.cs
- AutoSizeToolBoxItem.cs
- _BaseOverlappedAsyncResult.cs
- ChildChangedEventArgs.cs
- Span.cs
- ImageMapEventArgs.cs
- PromptBuilder.cs
- CngProperty.cs
- CornerRadius.cs
- XmlReflectionMember.cs
- ControlBuilderAttribute.cs
- ErrorEventArgs.cs
- WebPartMenu.cs
- DocumentGrid.cs
- UIElementAutomationPeer.cs
- Attributes.cs
- XmlAutoDetectWriter.cs
- ThreadWorkerController.cs
- DrawingBrush.cs
- DataGrid.cs
- SqlServer2KCompatibilityAnnotation.cs
- Menu.cs
- IPAddressCollection.cs
- SqlSelectStatement.cs
- PopupEventArgs.cs
- DataGridTablesFactory.cs
- RegisteredExpandoAttribute.cs
- Vector3DCollectionValueSerializer.cs
- UserControlBuildProvider.cs
- Debug.cs
- DateTimeOffsetConverter.cs
- HttpResponseInternalBase.cs
- DataTableNewRowEvent.cs
- KoreanLunisolarCalendar.cs
- shaperfactoryquerycachekey.cs
- InheritablePropertyChangeInfo.cs
- UInt16Storage.cs
- GridViewDeleteEventArgs.cs
- PrivateFontCollection.cs
- _LocalDataStoreMgr.cs
- WSHttpSecurityElement.cs
- PropertyInfoSet.cs
- CodeTypeReferenceExpression.cs
- EntityDataSourceUtil.cs
- XmlAtomicValue.cs
- ServiceInstanceProvider.cs
- Psha1DerivedKeyGeneratorHelper.cs
- ProfileManager.cs
- PartialCachingControl.cs
- TypeName.cs
- ApplicationSecurityInfo.cs
- ExceptionUtil.cs
- MetadataItemCollectionFactory.cs
- PathStreamGeometryContext.cs
- ObjectManager.cs
- Matrix3DValueSerializer.cs
- FileDialogCustomPlace.cs
- MemoryMappedViewAccessor.cs
- HostProtectionPermission.cs
- TabPage.cs
- XmlTypeMapping.cs
- EdmConstants.cs
- CompilerGlobalScopeAttribute.cs
- RelatedEnd.cs
- UserControlBuildProvider.cs
- rsa.cs
- SQLMoneyStorage.cs
- JsonCollectionDataContract.cs
- ListSortDescriptionCollection.cs
- Subordinate.cs
- XmlAttributeCollection.cs
- SimpleFieldTemplateFactory.cs
- XmlSchemaRedefine.cs
- VariableModifiersHelper.cs