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
- WebPartDeleteVerb.cs
- ADRoleFactory.cs
- ListBindableAttribute.cs
- WebPartTransformer.cs
- Exceptions.cs
- GridViewDeleteEventArgs.cs
- dbenumerator.cs
- LinearGradientBrush.cs
- UIElement3DAutomationPeer.cs
- SpotLight.cs
- DataGridViewIntLinkedList.cs
- StyleXamlParser.cs
- SQLMoneyStorage.cs
- ScriptMethodAttribute.cs
- TransformationRules.cs
- CustomErrorCollection.cs
- HtmlControlPersistable.cs
- CaseExpr.cs
- PathSegmentCollection.cs
- ConfigurationManager.cs
- AttachedPropertyBrowsableAttribute.cs
- RequestSecurityTokenForGetBrowserToken.cs
- ObjectView.cs
- MenuItemStyle.cs
- DropDownList.cs
- EmptyControlCollection.cs
- ExpressionBuilder.cs
- SelectionChangedEventArgs.cs
- DeviceContext.cs
- SimpleMailWebEventProvider.cs
- DataTableReader.cs
- DropTarget.cs
- SqlInternalConnection.cs
- LessThan.cs
- ResourceReader.cs
- Enumerable.cs
- DataFormats.cs
- SmtpCommands.cs
- DataObjectFieldAttribute.cs
- AdapterUtil.cs
- EmptyReadOnlyDictionaryInternal.cs
- ParallelQuery.cs
- Task.cs
- StructureChangedEventArgs.cs
- TrackingParameters.cs
- ColumnResizeUndoUnit.cs
- ApplicationFileCodeDomTreeGenerator.cs
- TranslateTransform3D.cs
- BaseInfoTable.cs
- SID.cs
- RefExpr.cs
- ProxyWebPartConnectionCollection.cs
- InputBindingCollection.cs
- hwndwrapper.cs
- DebugView.cs
- HtmlTableRow.cs
- CanonicalFontFamilyReference.cs
- ListBoxAutomationPeer.cs
- DiscoveryDocumentSearchPattern.cs
- CalendarDayButton.cs
- SafeRightsManagementHandle.cs
- MissingSatelliteAssemblyException.cs
- DataObjectMethodAttribute.cs
- EditorZoneBase.cs
- GreenMethods.cs
- Int16AnimationUsingKeyFrames.cs
- IPGlobalProperties.cs
- SafeSystemMetrics.cs
- SqlClientPermission.cs
- ExtensionElementCollection.cs
- UnsafeNativeMethods.cs
- PanelStyle.cs
- Gdiplus.cs
- CapiSafeHandles.cs
- TrustLevel.cs
- EventKeyword.cs
- EventItfInfo.cs
- LinqDataSource.cs
- EntityDataSourceWrapperCollection.cs
- UnsafeNativeMethods.cs
- ExceptionRoutedEventArgs.cs
- SqlRowUpdatingEvent.cs
- OwnerDrawPropertyBag.cs
- VerticalAlignConverter.cs
- GlyphingCache.cs
- ActivityWithResult.cs
- Globals.cs
- SamlNameIdentifierClaimResource.cs
- MetadataUtilsSmi.cs
- NumericUpDown.cs
- XPathDescendantIterator.cs
- GPPOINT.cs
- DataKeyArray.cs
- EUCJPEncoding.cs
- DateTimeFormat.cs
- CompleteWizardStep.cs
- InitializingNewItemEventArgs.cs
- XMLDiffLoader.cs
- HtmlTitle.cs
- dsa.cs