Code:
/ FX-1434 / FX-1434 / 1.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
- IgnoreFileBuildProvider.cs
- QilReference.cs
- SQLDateTime.cs
- QuaternionConverter.cs
- RuntimeArgumentHandle.cs
- InvalidEnumArgumentException.cs
- PackageStore.cs
- PtsHost.cs
- HttpBrowserCapabilitiesWrapper.cs
- StringValidatorAttribute.cs
- DatePickerAutomationPeer.cs
- VariableReference.cs
- TypeDependencyAttribute.cs
- PageEventArgs.cs
- HyperLinkStyle.cs
- QilList.cs
- EntityConnectionStringBuilderItem.cs
- MachineKeySection.cs
- ParamArrayAttribute.cs
- WebPartEditorOkVerb.cs
- NativeMethods.cs
- Pkcs7Signer.cs
- UriTemplateVariablePathSegment.cs
- ServiceDesigner.xaml.cs
- SecurityUtils.cs
- SystemIcons.cs
- RelationshipNavigation.cs
- MappingException.cs
- DetailsViewInsertEventArgs.cs
- StringUtil.cs
- Console.cs
- ISessionStateStore.cs
- TableDesigner.cs
- GlyphInfoList.cs
- TypedTableBaseExtensions.cs
- contentDescriptor.cs
- URL.cs
- SqlConnectionFactory.cs
- ImageMapEventArgs.cs
- MSAANativeProvider.cs
- XmlSchemaImport.cs
- BitmapDownload.cs
- Byte.cs
- NetStream.cs
- SectionInformation.cs
- DataContractJsonSerializerOperationBehavior.cs
- StringDictionaryEditor.cs
- WsatExtendedInformation.cs
- SByteConverter.cs
- PolicyValidationException.cs
- OleDbMetaDataFactory.cs
- SmiEventSink.cs
- CatalogPart.cs
- MessageEventSubscriptionService.cs
- ImageProxy.cs
- XsdBuildProvider.cs
- XmlSchemaProviderAttribute.cs
- GridViewRowPresenter.cs
- BinaryObjectWriter.cs
- StreamReader.cs
- MenuItemBindingCollection.cs
- SecureConversationServiceElement.cs
- X509Utils.cs
- InvalidateEvent.cs
- mongolianshape.cs
- BitmapFrameEncode.cs
- WindowsBrush.cs
- TemplateBindingExpression.cs
- Viewport3DAutomationPeer.cs
- Activator.cs
- Rijndael.cs
- RenderingBiasValidation.cs
- TdsParser.cs
- CompositionAdorner.cs
- DefaultTraceListener.cs
- DataControlPagerLinkButton.cs
- HttpHandlerActionCollection.cs
- TransformedBitmap.cs
- RelationshipWrapper.cs
- ToolStripContentPanelDesigner.cs
- ToolZone.cs
- StrongNameMembershipCondition.cs
- NativeWindow.cs
- FileAuthorizationModule.cs
- NullableConverter.cs
- LineUtil.cs
- PropertyGroupDescription.cs
- WindowVisualStateTracker.cs
- LocatorPartList.cs
- RangeBase.cs
- CommentGlyph.cs
- RenderingBiasValidation.cs
- SecureConversationServiceElement.cs
- SaveFileDialog.cs
- WebPartsSection.cs
- SQLBoolean.cs
- MetadataItem.cs
- CalendarAutoFormatDialog.cs
- IIS7WorkerRequest.cs
- HttpHostedTransportConfiguration.cs