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
- QualifierSet.cs
- Timer.cs
- LongTypeConverter.cs
- KeyToListMap.cs
- EventListenerClientSide.cs
- DataGridViewSortCompareEventArgs.cs
- PropertyKey.cs
- InputScopeConverter.cs
- FillErrorEventArgs.cs
- ComponentCache.cs
- GridView.cs
- NonBatchDirectoryCompiler.cs
- InstanceCreationEditor.cs
- StringExpressionSet.cs
- _ProxyChain.cs
- TrimSurroundingWhitespaceAttribute.cs
- PenLineJoinValidation.cs
- RemoteHelper.cs
- TraceContextRecord.cs
- OdbcConnectionFactory.cs
- XPathScanner.cs
- CompositionCommandSet.cs
- LayoutExceptionEventArgs.cs
- MergePropertyDescriptor.cs
- Message.cs
- Matrix.cs
- DSASignatureDeformatter.cs
- CodeNamespace.cs
- ArithmeticException.cs
- Exception.cs
- DelegatingConfigHost.cs
- MessageHeaders.cs
- BulletedListEventArgs.cs
- Process.cs
- BmpBitmapEncoder.cs
- IsolatedStorageFileStream.cs
- AuthenticationService.cs
- UIElementParagraph.cs
- Normalizer.cs
- ModelTreeEnumerator.cs
- ResourceExpression.cs
- SqlDataRecord.cs
- RealizedColumnsBlock.cs
- StorageBasedPackageProperties.cs
- CollectionConverter.cs
- PropertyFilterAttribute.cs
- DatagridviewDisplayedBandsData.cs
- SmiContext.cs
- PeerToPeerException.cs
- DaylightTime.cs
- SimpleExpression.cs
- SmtpNetworkElement.cs
- DictionarySectionHandler.cs
- AnnotationObservableCollection.cs
- XmlSchemaSimpleTypeRestriction.cs
- CompoundFileIOPermission.cs
- EventMap.cs
- ObjectDataSourceEventArgs.cs
- ToolStripSystemRenderer.cs
- WorkflowElementDialog.cs
- PrincipalPermission.cs
- PermissionSetEnumerator.cs
- SuppressMergeCheckAttribute.cs
- PassportAuthentication.cs
- PositiveTimeSpanValidatorAttribute.cs
- XmlIlTypeHelper.cs
- Lasso.cs
- ClientBuildManager.cs
- EntityDataSourceReferenceGroup.cs
- WindowsStatic.cs
- JumpPath.cs
- MsmqChannelFactory.cs
- GPRECT.cs
- IDReferencePropertyAttribute.cs
- CodeTypeReferenceExpression.cs
- OracleConnectionFactory.cs
- DataGridComponentEditor.cs
- AnimationException.cs
- ProjectionCamera.cs
- RsaSecurityToken.cs
- CommandField.cs
- PathStreamGeometryContext.cs
- InputReferenceExpression.cs
- SelectionBorderGlyph.cs
- DataTableReader.cs
- ExpressionBindingCollection.cs
- SqlInfoMessageEvent.cs
- ThreadExceptionEvent.cs
- ServicePointManagerElement.cs
- XmlIterators.cs
- WpfPayload.cs
- IApplicationTrustManager.cs
- ArgumentValueSerializer.cs
- ObjectManager.cs
- DeflateInput.cs
- UnitySerializationHolder.cs
- SocketElement.cs
- CellIdBoolean.cs
- CollectionBase.cs
- PieceDirectory.cs