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
- CompositeFontParser.cs
- ProvidersHelper.cs
- DocumentOrderComparer.cs
- PenContexts.cs
- DebugView.cs
- AudienceUriMode.cs
- ApplyImportsAction.cs
- NetCodeGroup.cs
- MatrixAnimationBase.cs
- BaseCollection.cs
- Visual3DCollection.cs
- ListMarkerSourceInfo.cs
- BuildProvider.cs
- DBCSCodePageEncoding.cs
- ToolStripContentPanel.cs
- StringBuilder.cs
- EntityDataSourceChangedEventArgs.cs
- EventlogProvider.cs
- CompilerState.cs
- XPathConvert.cs
- DataSourceXmlSerializationAttribute.cs
- IISUnsafeMethods.cs
- WebPartUserCapability.cs
- MappingMetadataHelper.cs
- MediaTimeline.cs
- Converter.cs
- DataGridTextBox.cs
- TransformerTypeCollection.cs
- InlineUIContainer.cs
- StreamInfo.cs
- DrawListViewItemEventArgs.cs
- HtmlUtf8RawTextWriter.cs
- EventLogPermission.cs
- WebPartZoneBase.cs
- IpcServerChannel.cs
- BadImageFormatException.cs
- LayoutTableCell.cs
- AppSettingsExpressionBuilder.cs
- OracleRowUpdatedEventArgs.cs
- IPEndPointCollection.cs
- DataGridViewCellConverter.cs
- EqualityComparer.cs
- Timer.cs
- HitTestParameters.cs
- ClusterRegistryConfigurationProvider.cs
- HScrollProperties.cs
- StringSource.cs
- StackSpiller.Generated.cs
- CustomValidator.cs
- DocumentViewerBaseAutomationPeer.cs
- IssuedTokensHeader.cs
- DbMetaDataColumnNames.cs
- DependencyPropertyConverter.cs
- CriticalFinalizerObject.cs
- ObjectDataSourceDisposingEventArgs.cs
- PathStreamGeometryContext.cs
- StringValueSerializer.cs
- InternalPolicyElement.cs
- FormViewUpdatedEventArgs.cs
- TextEffect.cs
- DefaultValueTypeConverter.cs
- SizeLimitedCache.cs
- DocumentApplicationState.cs
- EmptyStringExpandableObjectConverter.cs
- StateMachine.cs
- InternalsVisibleToAttribute.cs
- NativeRecognizer.cs
- CompilerTypeWithParams.cs
- PassportIdentity.cs
- Object.cs
- ChtmlCalendarAdapter.cs
- MetadataArtifactLoaderCompositeFile.cs
- TextBoxAutomationPeer.cs
- ObjectStateManagerMetadata.cs
- MsmqChannelListenerBase.cs
- TraceUtility.cs
- DbConnectionStringBuilder.cs
- PropertyNames.cs
- DataListItemEventArgs.cs
- RectAnimation.cs
- EdmConstants.cs
- DataGrid.cs
- ScalarOps.cs
- ListCardsInFileRequest.cs
- ToolStripPanelRenderEventArgs.cs
- DataControlButton.cs
- RenderingBiasValidation.cs
- CultureSpecificCharacterBufferRange.cs
- MobileComponentEditorPage.cs
- SqlDelegatedTransaction.cs
- WorkflowInstance.cs
- HttpCacheVary.cs
- oledbmetadatacollectionnames.cs
- DataSetFieldSchema.cs
- TextAnchor.cs
- WmlControlAdapter.cs
- __FastResourceComparer.cs
- QueryableDataSourceView.cs
- TextElement.cs
- FontWeightConverter.cs