Code:
/ DotNET / DotNET / 8.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
- ValidationPropertyAttribute.cs
- PermissionSetTriple.cs
- VisualStyleRenderer.cs
- ValueHandle.cs
- BufferedReceiveElement.cs
- BlobPersonalizationState.cs
- RuleSettings.cs
- ReadOnlyKeyedCollection.cs
- QueryOperationResponseOfT.cs
- DictionaryGlobals.cs
- CompiledRegexRunner.cs
- HttpModuleAction.cs
- Rights.cs
- TreeNodeCollection.cs
- Identity.cs
- PreviewPageInfo.cs
- Transform.cs
- DBParameter.cs
- QueryInterceptorAttribute.cs
- EmptyStringExpandableObjectConverter.cs
- Transform3D.cs
- Resources.Designer.cs
- WebConfigurationHostFileChange.cs
- StatusBarItemAutomationPeer.cs
- HttpInputStream.cs
- WasNotInstalledException.cs
- GlobalizationSection.cs
- OpenTypeLayout.cs
- WebPartEditorApplyVerb.cs
- MenuEventArgs.cs
- Point3D.cs
- DynamicMethod.cs
- ConnectionInterfaceCollection.cs
- MyContact.cs
- SemanticBasicElement.cs
- serverconfig.cs
- WorkflowWebService.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- RenderData.cs
- DocumentPage.cs
- HttpApplication.cs
- AsymmetricAlgorithm.cs
- ClientSettings.cs
- SecurityTokenProvider.cs
- SerializationObjectManager.cs
- EntityDataSourceChangingEventArgs.cs
- IriParsingElement.cs
- TextViewSelectionProcessor.cs
- MetaChildrenColumn.cs
- CommonEndpointBehaviorElement.cs
- httpserverutility.cs
- SqlOuterApplyReducer.cs
- ChangesetResponse.cs
- ValidatedControlConverter.cs
- InfoCardRSAPKCS1SignatureFormatter.cs
- XmlSerializationGeneratedCode.cs
- WebServiceTypeData.cs
- DataGridViewComboBoxCell.cs
- SQLInt16.cs
- StreamGeometryContext.cs
- IPPacketInformation.cs
- SessionEndingCancelEventArgs.cs
- EdmMember.cs
- ReverseComparer.cs
- ProxyDataContractResolver.cs
- SafeMILHandleMemoryPressure.cs
- LayoutEvent.cs
- StaticSiteMapProvider.cs
- ApplicationSecurityInfo.cs
- ApplicationBuildProvider.cs
- RayHitTestParameters.cs
- TableParaClient.cs
- panel.cs
- Exception.cs
- Exception.cs
- FormsAuthenticationTicket.cs
- EntityParameterCollection.cs
- CodeSnippetStatement.cs
- IpcPort.cs
- SafeSecurityHelper.cs
- ObjectCloneHelper.cs
- ResourcePool.cs
- MachineKeySection.cs
- WebServiceMethodData.cs
- FamilyTypeface.cs
- XmlSchema.cs
- MimeParameter.cs
- UnsafeNativeMethods.cs
- ErrorWrapper.cs
- Error.cs
- RangeValidator.cs
- SqlAliasesReferenced.cs
- EventMappingSettingsCollection.cs
- MediaContext.cs
- BuildResult.cs
- UpdateManifestForBrowserApplication.cs
- DataGridViewCellConverter.cs
- SoapRpcMethodAttribute.cs
- BaseCodePageEncoding.cs
- BinaryObjectWriter.cs