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
- RtType.cs
- BinaryMessageEncoder.cs
- _HeaderInfoTable.cs
- ObjectConverter.cs
- TableMethodGenerator.cs
- StringBuilder.cs
- LazyTextWriterCreator.cs
- DbParameterCollectionHelper.cs
- DataGridToolTip.cs
- ClientTargetSection.cs
- XmlTypeAttribute.cs
- XsdDuration.cs
- CodeChecksumPragma.cs
- InputGestureCollection.cs
- StorageFunctionMapping.cs
- DataGridViewCellEventArgs.cs
- Debug.cs
- EntitySqlQueryCacheKey.cs
- CommandSet.cs
- Activator.cs
- AssemblyAttributesGoHere.cs
- PrefixQName.cs
- DataGridViewComboBoxColumn.cs
- DateTimeStorage.cs
- BamlLocalizableResource.cs
- CrossContextChannel.cs
- AttachmentCollection.cs
- SerTrace.cs
- EntitySqlQueryState.cs
- PrintDialog.cs
- TypeBuilder.cs
- SQLConvert.cs
- XmlValidatingReaderImpl.cs
- PenContexts.cs
- TypefaceMap.cs
- TreeChangeInfo.cs
- ReadOnlyHierarchicalDataSource.cs
- DiscoveryClientRequestChannel.cs
- ISAPIWorkerRequest.cs
- ConfigurationStrings.cs
- ClaimSet.cs
- MetadataSource.cs
- ToolBarPanel.cs
- Dispatcher.cs
- FormCollection.cs
- SchemaSetCompiler.cs
- MouseCaptureWithinProperty.cs
- RoutedEventHandlerInfo.cs
- HttpWrapper.cs
- KnownTypesProvider.cs
- CodeMemberField.cs
- MethodBuilder.cs
- PolicyException.cs
- SmtpAuthenticationManager.cs
- DbgCompiler.cs
- OdbcConnection.cs
- FormDesigner.cs
- QueryCorrelationInitializer.cs
- TextProviderWrapper.cs
- DateTime.cs
- XhtmlBasicLiteralTextAdapter.cs
- IOThreadTimer.cs
- InputMethodStateTypeInfo.cs
- RequiredFieldValidator.cs
- PeerCustomResolverBindingElement.cs
- CustomLineCap.cs
- AutomationProperties.cs
- SimpleWebHandlerParser.cs
- WebMessageBodyStyleHelper.cs
- HttpListenerContext.cs
- SamlSecurityTokenAuthenticator.cs
- BuildProvider.cs
- OuterGlowBitmapEffect.cs
- InnerItemCollectionView.cs
- NetStream.cs
- DocumentReference.cs
- _ProxyRegBlob.cs
- BamlLocalizer.cs
- SqlConnection.cs
- ClientTarget.cs
- GraphicsContext.cs
- EditableTreeList.cs
- XamlTypeMapper.cs
- ZipPackagePart.cs
- ExpressionReplacer.cs
- SqlCommand.cs
- DocumentViewerBaseAutomationPeer.cs
- DependencyPropertyAttribute.cs
- CuspData.cs
- RSACryptoServiceProvider.cs
- shaperfactory.cs
- StreamAsIStream.cs
- UnmanagedMemoryStreamWrapper.cs
- DataGridViewLinkColumn.cs
- XpsFontSubsetter.cs
- DeploymentExceptionMapper.cs
- ModelUIElement3D.cs
- TextPointerBase.cs
- BackStopAuthenticationModule.cs
- ToolStripGrip.cs