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
- DataSourceUtil.cs
- SuppressMessageAttribute.cs
- WmfPlaceableFileHeader.cs
- CheckBoxPopupAdapter.cs
- HorizontalAlignConverter.cs
- EventSetter.cs
- CodeDefaultValueExpression.cs
- GridViewSelectEventArgs.cs
- PngBitmapDecoder.cs
- UpdatePanel.cs
- DataSourceGroupCollection.cs
- XMLDiffLoader.cs
- _TransmitFileOverlappedAsyncResult.cs
- DataList.cs
- ByteConverter.cs
- AQNBuilder.cs
- ScrollViewer.cs
- TableNameAttribute.cs
- RadialGradientBrush.cs
- SlipBehavior.cs
- CFStream.cs
- OrthographicCamera.cs
- GenerateTemporaryAssemblyTask.cs
- PowerModeChangedEventArgs.cs
- ObjectSpanRewriter.cs
- FixedDSBuilder.cs
- EntityDataSourceContainerNameConverter.cs
- WebPartConnectionsCloseVerb.cs
- IISMapPath.cs
- SetUserLanguageRequest.cs
- ZipIOBlockManager.cs
- ThicknessConverter.cs
- UserPreferenceChangingEventArgs.cs
- MimeObjectFactory.cs
- ChangeTracker.cs
- Pts.cs
- BindableTemplateBuilder.cs
- InternalPolicyElement.cs
- ModelPropertyDescriptor.cs
- IPPacketInformation.cs
- ItemList.cs
- MDIControlStrip.cs
- HandledMouseEvent.cs
- Barrier.cs
- GenericIdentity.cs
- SqlUdtInfo.cs
- EntityDataSource.cs
- CssTextWriter.cs
- Misc.cs
- XmlNode.cs
- PackWebRequestFactory.cs
- XmlSchemaCompilationSettings.cs
- ChannelManager.cs
- FrameworkElementAutomationPeer.cs
- PropertyRecord.cs
- DataSourceXmlTextReader.cs
- InputManager.cs
- Msec.cs
- WebBrowsableAttribute.cs
- NotifyParentPropertyAttribute.cs
- GridViewSortEventArgs.cs
- safex509handles.cs
- ConnectionPointCookie.cs
- ProcessInputEventArgs.cs
- ThicknessConverter.cs
- RequestQueryParser.cs
- SqlNotificationRequest.cs
- RectIndependentAnimationStorage.cs
- FaultHandlingFilter.cs
- RefreshPropertiesAttribute.cs
- DetailsViewCommandEventArgs.cs
- AccessDataSource.cs
- DataQuery.cs
- TextContainerHelper.cs
- _NtlmClient.cs
- SecuritySessionSecurityTokenProvider.cs
- Command.cs
- EntityDesignPluralizationHandler.cs
- StsCommunicationException.cs
- BuildProviderCollection.cs
- OdbcInfoMessageEvent.cs
- SqlProvider.cs
- StylusShape.cs
- ProtocolProfile.cs
- Visual3D.cs
- ReflectionServiceProvider.cs
- JavaScriptString.cs
- sqlstateclientmanager.cs
- StylusPointProperties.cs
- HistoryEventArgs.cs
- XmlParser.cs
- EmptyControlCollection.cs
- MDIWindowDialog.cs
- SmtpDigestAuthenticationModule.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- HostUtils.cs
- UnsafeNativeMethods.cs
- QueryExecutionOption.cs
- WebPartConnectionsConnectVerb.cs
- DrawingGroup.cs