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
- StreamWriter.cs
- SimpleWorkerRequest.cs
- EntityContainerEntitySet.cs
- VarInfo.cs
- TextServicesCompartment.cs
- Validator.cs
- DispatcherEventArgs.cs
- TreeViewImageKeyConverter.cs
- EncoderNLS.cs
- HtmlElementEventArgs.cs
- ActiveXHost.cs
- UnsafeCollabNativeMethods.cs
- PointAnimation.cs
- XPathDocumentBuilder.cs
- Root.cs
- HttpFileCollection.cs
- IResourceProvider.cs
- DataGrid.cs
- BrowserCapabilitiesFactoryBase.cs
- SchemaElementDecl.cs
- CodeDomDecompiler.cs
- PropertyTabChangedEvent.cs
- HttpWriter.cs
- PropertyMap.cs
- CalendarDateRangeChangingEventArgs.cs
- DataGridAddNewRow.cs
- CultureInfo.cs
- Calendar.cs
- InfoCardAsymmetricCrypto.cs
- BamlLocalizableResource.cs
- TimeManager.cs
- AutomationProperty.cs
- WebScriptEnablingElement.cs
- AssociatedControlConverter.cs
- ASCIIEncoding.cs
- Columns.cs
- CodeValidator.cs
- ReferencedType.cs
- VirtualPathProvider.cs
- ComponentGuaranteesAttribute.cs
- PersonalizationDictionary.cs
- ElementInit.cs
- RadioButton.cs
- DesignerOptionService.cs
- FileDialogCustomPlacesCollection.cs
- ManagedWndProcTracker.cs
- DependencyObjectType.cs
- RefType.cs
- DataChangedEventManager.cs
- CertificateManager.cs
- ConfigXmlComment.cs
- NullReferenceException.cs
- CodeTypeDeclarationCollection.cs
- AudioStateChangedEventArgs.cs
- ModelItemExtensions.cs
- ValidationResults.cs
- TileModeValidation.cs
- ToolboxItemCollection.cs
- ScriptManagerProxy.cs
- BindingExpressionBase.cs
- WebPartRestoreVerb.cs
- DbConnectionPoolOptions.cs
- SQLBinary.cs
- WebPageTraceListener.cs
- HttpConfigurationContext.cs
- Cursors.cs
- SqlExpressionNullability.cs
- MenuItemBindingCollection.cs
- XamlTreeBuilderBamlRecordWriter.cs
- TemplateField.cs
- Message.cs
- EventLogPermission.cs
- WindowsListView.cs
- DecimalAnimation.cs
- XmlException.cs
- DataGridViewCellContextMenuStripNeededEventArgs.cs
- InsufficientMemoryException.cs
- httpstaticobjectscollection.cs
- StringCollection.cs
- UrlPath.cs
- FormsAuthenticationEventArgs.cs
- ConfigurationSettings.cs
- XsltOutput.cs
- ObjectDataSource.cs
- XmlNodeComparer.cs
- SrgsRule.cs
- PropertyGeneratedEventArgs.cs
- UIntPtr.cs
- MasterPage.cs
- Filter.cs
- NotificationContext.cs
- LinkLabelLinkClickedEvent.cs
- EmptyControlCollection.cs
- BaseResourcesBuildProvider.cs
- SmiTypedGetterSetter.cs
- NativeMethods.cs
- ClockController.cs
- Processor.cs
- TableCellCollection.cs
- EntityContainer.cs