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
- ThicknessKeyFrameCollection.cs
- DeploymentSectionCache.cs
- TrackingMemoryStreamFactory.cs
- FieldNameLookup.cs
- ObjectDataSourceStatusEventArgs.cs
- OrderedDictionaryStateHelper.cs
- Freezable.cs
- CodeDOMUtility.cs
- SortQueryOperator.cs
- AtomParser.cs
- SymLanguageType.cs
- ExpressionVisitor.cs
- HwndPanningFeedback.cs
- WebServicesSection.cs
- TextWriter.cs
- FontUnitConverter.cs
- PropertyEmitterBase.cs
- Util.cs
- SendParametersContent.cs
- HostUtils.cs
- TypeReference.cs
- XmlSchema.cs
- QueryCacheKey.cs
- wgx_exports.cs
- AlphabeticalEnumConverter.cs
- DynamicObject.cs
- SQLDecimal.cs
- OdbcEnvironment.cs
- Matrix3D.cs
- InstanceKeyCollisionException.cs
- CrossSiteScriptingValidation.cs
- ApplicationGesture.cs
- HiddenFieldDesigner.cs
- GetRecipientListRequest.cs
- SmiEventSink_Default.cs
- PopupRootAutomationPeer.cs
- CacheSection.cs
- MultiplexingDispatchMessageFormatter.cs
- ArgumentValue.cs
- ListViewTableRow.cs
- Socket.cs
- VisualState.cs
- NotConverter.cs
- DetailsViewModeEventArgs.cs
- HiddenField.cs
- XmlWriterTraceListener.cs
- CodeObject.cs
- PtsHelper.cs
- PropertyEntry.cs
- DefaultAssemblyResolver.cs
- SoapElementAttribute.cs
- basemetadatamappingvisitor.cs
- RootDesignerSerializerAttribute.cs
- XmlWriter.cs
- MdiWindowListItemConverter.cs
- Encoder.cs
- SimpleTypesSurrogate.cs
- EntityContainer.cs
- CultureSpecificStringDictionary.cs
- GcSettings.cs
- ScaleTransform.cs
- LockRecursionException.cs
- TargetParameterCountException.cs
- ObjectReferenceStack.cs
- TrackingStringDictionary.cs
- DataView.cs
- RelationshipFixer.cs
- ScrollProviderWrapper.cs
- ZipIOBlockManager.cs
- FileUtil.cs
- SerializationSectionGroup.cs
- LineUtil.cs
- FormCollection.cs
- BinaryObjectInfo.cs
- ListSortDescriptionCollection.cs
- ListArgumentProvider.cs
- SqlBuilder.cs
- MissingMemberException.cs
- AppDomain.cs
- PageThemeBuildProvider.cs
- ArglessEventHandlerProxy.cs
- TextBoxDesigner.cs
- _ConnectStream.cs
- ConstructorBuilder.cs
- AssemblyFilter.cs
- UIElement3D.cs
- SubclassTypeValidator.cs
- LogSwitch.cs
- TypedTableBase.cs
- ZoneButton.cs
- ContainerFilterService.cs
- Clock.cs
- StoreContentChangedEventArgs.cs
- VirtualPathProvider.cs
- HandlerFactoryCache.cs
- WebBrowser.cs
- BitmapEffectGeneralTransform.cs
- Point3DAnimationUsingKeyFrames.cs
- ContractNamespaceAttribute.cs
- WindowsBrush.cs