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
- CheckoutException.cs
- FrameworkElement.cs
- Merger.cs
- XmlSchemaSimpleTypeList.cs
- AlternateView.cs
- InitializationEventAttribute.cs
- MessageFilterTable.cs
- DefaultValueAttribute.cs
- ObjectNavigationPropertyMapping.cs
- StrongNameIdentityPermission.cs
- XPathBinder.cs
- EntityModelSchemaGenerator.cs
- AdornerDecorator.cs
- NativeRightsManagementAPIsStructures.cs
- ToolStripContentPanel.cs
- ConditionValidator.cs
- Vector3DCollectionConverter.cs
- AsyncInvokeContext.cs
- BitmapMetadataBlob.cs
- CompilerState.cs
- WhitespaceSignificantCollectionAttribute.cs
- ErrorTableItemStyle.cs
- TextContainerHelper.cs
- DbConnectionStringCommon.cs
- RelationshipDetailsRow.cs
- BitmapEditor.cs
- EventDriven.cs
- SafeNativeMethods.cs
- WebPartConnectionsCloseVerb.cs
- PackWebResponse.cs
- AudioException.cs
- safelink.cs
- XPathArrayIterator.cs
- HierarchicalDataSourceControl.cs
- Item.cs
- GenericUriParser.cs
- WindowsImpersonationContext.cs
- HyperLinkField.cs
- TextPatternIdentifiers.cs
- Native.cs
- SettingsContext.cs
- SecurityException.cs
- BamlRecordReader.cs
- ScrollEvent.cs
- LocalizationComments.cs
- Debug.cs
- EntityCommandDefinition.cs
- ConfigXmlSignificantWhitespace.cs
- FlowDocumentReader.cs
- TileBrush.cs
- AudioDeviceOut.cs
- StsCommunicationException.cs
- SignatureToken.cs
- UrlPath.cs
- RoutedEventArgs.cs
- TextServicesManager.cs
- SQLDateTimeStorage.cs
- GPRECTF.cs
- PropertyValueUIItem.cs
- MetadataArtifactLoaderFile.cs
- ByteAnimation.cs
- AddIn.cs
- CacheAxisQuery.cs
- Helpers.cs
- SystemEvents.cs
- InkSerializer.cs
- Baml2006ReaderSettings.cs
- ProjectionAnalyzer.cs
- NodeInfo.cs
- ListViewSortEventArgs.cs
- SqlDataSourceCache.cs
- WindowsTab.cs
- WithStatement.cs
- SchemaCollectionCompiler.cs
- AndCondition.cs
- XmlDictionaryReaderQuotas.cs
- Frame.cs
- Encoder.cs
- InternalRelationshipCollection.cs
- Stylus.cs
- EFTableProvider.cs
- TrayIconDesigner.cs
- DataServiceProviderWrapper.cs
- LabelEditEvent.cs
- WebPartTransformerCollection.cs
- AppSettingsReader.cs
- BitmapData.cs
- TableLayoutPanelCellPosition.cs
- SqlDataSourceEnumerator.cs
- RepeatInfo.cs
- SequenceQuery.cs
- IISMapPath.cs
- glyphs.cs
- StructuredCompositeActivityDesigner.cs
- InternalDispatchObject.cs
- RegexCode.cs
- WebMethodAttribute.cs
- WebPartConnection.cs
- AnonymousIdentificationModule.cs
- Part.cs