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
- DataSourceProvider.cs
- ConversionValidationRule.cs
- CompilerError.cs
- ValidatorAttribute.cs
- XmlUtf8RawTextWriter.cs
- BeginEvent.cs
- ColumnHeader.cs
- ParsedAttributeCollection.cs
- ClosureBinding.cs
- FamilyMapCollection.cs
- FatalException.cs
- CodeTypeParameter.cs
- GPStream.cs
- EventManager.cs
- EntityDescriptor.cs
- PinnedBufferMemoryStream.cs
- BoundsDrawingContextWalker.cs
- ScopelessEnumAttribute.cs
- ClientSettings.cs
- cryptoapiTransform.cs
- WizardForm.cs
- PointHitTestResult.cs
- DataTableMapping.cs
- safelinkcollection.cs
- LogReservationCollection.cs
- EnumValAlphaComparer.cs
- RevocationPoint.cs
- HtmlInputCheckBox.cs
- SocketInformation.cs
- PasswordTextNavigator.cs
- Mutex.cs
- DataRecordInternal.cs
- PropertyIdentifier.cs
- StartUpEventArgs.cs
- SelectionPattern.cs
- GetWinFXPath.cs
- WebPartCatalogAddVerb.cs
- WindowsGraphicsCacheManager.cs
- AuthenticationModuleElementCollection.cs
- QilSortKey.cs
- QilXmlReader.cs
- SpeakProgressEventArgs.cs
- TableChangeProcessor.cs
- backend.cs
- UiaCoreTypesApi.cs
- TreeNode.cs
- GraphicsState.cs
- NavigateEvent.cs
- Rotation3DAnimation.cs
- XmlValidatingReader.cs
- RectConverter.cs
- BitmapPalette.cs
- NumberFormatInfo.cs
- WorkflowRequestContext.cs
- SourceSwitch.cs
- DesignerSerializationOptionsAttribute.cs
- URLBuilder.cs
- ZipIOExtraFieldElement.cs
- UrlPath.cs
- PropertyEmitter.cs
- HotSpot.cs
- DescendantBaseQuery.cs
- DataControlFieldCollection.cs
- NestPullup.cs
- CharacterBuffer.cs
- ConfigXmlComment.cs
- Section.cs
- Config.cs
- WebHttpBehavior.cs
- JoinTreeSlot.cs
- ProfileManager.cs
- ExpandSegmentCollection.cs
- SqlTriggerAttribute.cs
- InputLanguageCollection.cs
- Control.cs
- BooleanAnimationUsingKeyFrames.cs
- ExceptionValidationRule.cs
- MachineKeySection.cs
- DeviceContext.cs
- DataGridColumnCollectionEditor.cs
- TwoPhaseCommitProxy.cs
- FakeModelPropertyImpl.cs
- SystemDropShadowChrome.cs
- EventManager.cs
- DataGridViewCellValueEventArgs.cs
- HwndHost.cs
- WorkflowControlClient.cs
- HttpModuleCollection.cs
- BackStopAuthenticationModule.cs
- SqlStream.cs
- ArgIterator.cs
- COM2ExtendedTypeConverter.cs
- SerializationObjectManager.cs
- ObjectDataSourceMethodEditor.cs
- AnnotationComponentManager.cs
- RelatedPropertyManager.cs
- ToolBarButtonClickEvent.cs
- InternalTransaction.cs
- Icon.cs
- WindowsRebar.cs