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
- ConcurrentBag.cs
- CompilerTypeWithParams.cs
- GetWinFXPath.cs
- StorageBasedPackageProperties.cs
- SqlCacheDependency.cs
- DataGridColumnHeaderItemAutomationPeer.cs
- WebBrowserPermission.cs
- ActionMessageFilter.cs
- BitmapVisualManager.cs
- MetafileHeader.cs
- NetCodeGroup.cs
- DirectoryInfo.cs
- TaiwanCalendar.cs
- MultiPageTextView.cs
- PenLineCapValidation.cs
- OLEDB_Util.cs
- ToolStripSeparatorRenderEventArgs.cs
- XmlTextReaderImplHelpers.cs
- IteratorDescriptor.cs
- MeasureItemEvent.cs
- ResourceExpressionBuilder.cs
- DataViewListener.cs
- AttachmentCollection.cs
- QilIterator.cs
- UdpTransportSettingsElement.cs
- PtsHelper.cs
- ResourceAssociationSet.cs
- WebZone.cs
- ServerValidateEventArgs.cs
- WebPartManager.cs
- validation.cs
- MenuItemStyle.cs
- ToolStripActionList.cs
- ProfileSettings.cs
- PropertyNames.cs
- MenuAdapter.cs
- TypeExtensionConverter.cs
- Msec.cs
- EntityDataSourceStatementEditorForm.cs
- ListItemCollection.cs
- GridViewSelectEventArgs.cs
- CookieProtection.cs
- HMACSHA256.cs
- NullableBoolConverter.cs
- XmlTypeAttribute.cs
- ExtendedPropertyDescriptor.cs
- FileLogRecordEnumerator.cs
- ReadOnlyHierarchicalDataSourceView.cs
- autovalidator.cs
- PropertyPathConverter.cs
- XmlSignatureProperties.cs
- SqlProviderManifest.cs
- AnnotationResourceChangedEventArgs.cs
- TheQuery.cs
- SoapAttributes.cs
- SQLBytes.cs
- CommonDialog.cs
- Errors.cs
- dataprotectionpermissionattribute.cs
- WebPartManagerInternals.cs
- LocalizabilityAttribute.cs
- MarkupExtensionReturnTypeAttribute.cs
- HtmlControl.cs
- ColumnMapCopier.cs
- GeneralTransform2DTo3DTo2D.cs
- QilValidationVisitor.cs
- StatusBarDrawItemEvent.cs
- HttpFormatExtensions.cs
- SqlClientFactory.cs
- TraceSection.cs
- Merger.cs
- LicenseProviderAttribute.cs
- SecurityAccessDeniedException.cs
- PictureBoxDesigner.cs
- DataGridViewMethods.cs
- XmlPreloadedResolver.cs
- UpdatePanelTrigger.cs
- WebServiceClientProxyGenerator.cs
- SrgsRuleRef.cs
- TakeOrSkipWhileQueryOperator.cs
- AsynchronousChannelMergeEnumerator.cs
- VirtualDirectoryMappingCollection.cs
- TemplatePropertyEntry.cs
- XmlKeywords.cs
- TextOutput.cs
- WorkflowElementDialog.cs
- AssemblyCollection.cs
- TrackingProfileSerializer.cs
- ManagementQuery.cs
- PlainXmlSerializer.cs
- NotFiniteNumberException.cs
- ClientData.cs
- Msec.cs
- QueryTaskGroupState.cs
- LoadItemsEventArgs.cs
- GeometryGroup.cs
- CounterSample.cs
- Padding.cs
- DiscoveryDocumentReference.cs
- UIElementCollection.cs