Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / WebForms / System / Web / UI / Design / WebControls / WindowsFormsEditorServiceHelper.cs / 1 / WindowsFormsEditorServiceHelper.cs
using System.Web.UI.Design.Util; using System.Windows.Forms; using System.Windows.Forms.Design; using System.ComponentModel; using System.ComponentModel.Design; namespace System.Web.UI.Design.WebControls { internal sealed class WindowsFormsEditorServiceHelper : IWindowsFormsEditorService, IServiceProvider { private ComponentDesigner _componentDesigner; public WindowsFormsEditorServiceHelper(ComponentDesigner componentDesigner) { _componentDesigner = componentDesigner; } #region IWindowsFormsEditorService Members void IWindowsFormsEditorService.CloseDropDown() { } void IWindowsFormsEditorService.DropDownControl(System.Windows.Forms.Control control) { } DialogResult IWindowsFormsEditorService.ShowDialog(System.Windows.Forms.Form dialog) { return UIServiceHelper.ShowDialog(this, dialog); } #endregion #region ComponentDesigner Members object IServiceProvider.GetService(Type serviceType) { if (serviceType == typeof(IWindowsFormsEditorService)) { return this; } else { IComponent component = _componentDesigner.Component; if (component != null) { ISite site = _componentDesigner.Component.Site; if (site != null) { return site.GetService(serviceType); } } } return null; } #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
- FlatButtonAppearance.cs
- XmlSchemaAnyAttribute.cs
- DataGridPagerStyle.cs
- ClientTarget.cs
- BinaryMessageFormatter.cs
- EnumValAlphaComparer.cs
- XmlSchemaAny.cs
- TreeNodeStyle.cs
- SchemaAttDef.cs
- regiisutil.cs
- DoubleKeyFrameCollection.cs
- PolyLineSegment.cs
- RoleManagerEventArgs.cs
- WindowsGraphicsWrapper.cs
- TransformPatternIdentifiers.cs
- DelayLoadType.cs
- ProcessHostConfigUtils.cs
- TableItemStyle.cs
- InheritanceContextChangedEventManager.cs
- ControlValuePropertyAttribute.cs
- WaveHeader.cs
- ScrollBar.cs
- PageTheme.cs
- ClickablePoint.cs
- WindowsSolidBrush.cs
- ItemsPresenter.cs
- AuthenticationService.cs
- LinkedResourceCollection.cs
- HTTP_SERVICE_CONFIG_URLACL_KEY.cs
- ProbeMatchesCD1.cs
- ProtocolsConfigurationHandler.cs
- CompilerErrorCollection.cs
- HtmlHistory.cs
- ProgressChangedEventArgs.cs
- Quaternion.cs
- StylusShape.cs
- QueryConverter.cs
- ReliableMessagingHelpers.cs
- XmlSerializer.cs
- HttpHandlersSection.cs
- AVElementHelper.cs
- Vector3DAnimation.cs
- StructuredTypeInfo.cs
- XmlSchemaAnnotated.cs
- AsyncOperation.cs
- SchemaTypeEmitter.cs
- CacheSection.cs
- HtmlEmptyTagControlBuilder.cs
- StorageAssociationSetMapping.cs
- SafeNativeMethods.cs
- DispatcherHooks.cs
- InstalledFontCollection.cs
- ProvideValueServiceProvider.cs
- IgnoreDataMemberAttribute.cs
- StringSource.cs
- ProviderCollection.cs
- ScriptControlDescriptor.cs
- BaseCollection.cs
- EndpointNotFoundException.cs
- BamlLocalizer.cs
- regiisutil.cs
- HMACSHA1.cs
- ProxyElement.cs
- Attributes.cs
- UrlEncodedParameterWriter.cs
- OdbcConnectionStringbuilder.cs
- AdPostCacheSubstitution.cs
- DetailsViewCommandEventArgs.cs
- WindowsMenu.cs
- UpdateManifestForBrowserApplication.cs
- AspNetSynchronizationContext.cs
- ListBindingHelper.cs
- TablePattern.cs
- Floater.cs
- ModifyActivitiesPropertyDescriptor.cs
- Stacktrace.cs
- ParenExpr.cs
- PixelShader.cs
- ResourceDictionary.cs
- IISMapPath.cs
- NumericUpDownAccelerationCollection.cs
- HtmlToClrEventProxy.cs
- FixedMaxHeap.cs
- SqlCacheDependencySection.cs
- SuppressMergeCheckAttribute.cs
- Stacktrace.cs
- AsyncResult.cs
- LocationEnvironment.cs
- TextTreePropertyUndoUnit.cs
- DataViewSetting.cs
- PolygonHotSpot.cs
- PassportPrincipal.cs
- SQLRoleProvider.cs
- WindowsIdentity.cs
- XpsStructure.cs
- ImageInfo.cs
- ParsedAttributeCollection.cs
- ObjectDataSourceDisposingEventArgs.cs
- CompilerTypeWithParams.cs
- HttpClientProtocol.cs