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
- ImageListUtils.cs
- PropertyState.cs
- IsolationInterop.cs
- SymbolPair.cs
- RulePatternOps.cs
- CounterCreationData.cs
- DataViewManagerListItemTypeDescriptor.cs
- ListBindingHelper.cs
- LinqDataSourceInsertEventArgs.cs
- COMException.cs
- ZipIOCentralDirectoryBlock.cs
- DBAsyncResult.cs
- GridViewRowPresenterBase.cs
- UdpTransportBindingElement.cs
- TaskForm.cs
- PerfService.cs
- ResXResourceSet.cs
- ListBox.cs
- AutoGeneratedFieldProperties.cs
- CodeChecksumPragma.cs
- ComplexObject.cs
- XsdCachingReader.cs
- SqlConnectionManager.cs
- TcpSocketManager.cs
- ThrowHelper.cs
- Permission.cs
- DataPagerFieldCollection.cs
- NameValueCollection.cs
- RepeatBehavior.cs
- XmlEntity.cs
- WriteFileContext.cs
- FormViewUpdateEventArgs.cs
- SByteConverter.cs
- SoundPlayer.cs
- ArgumentNullException.cs
- XmlWriter.cs
- HttpWebRequest.cs
- PageThemeParser.cs
- Serializer.cs
- UserControlCodeDomTreeGenerator.cs
- DefaultMemberAttribute.cs
- ObjectTypeMapping.cs
- WithStatement.cs
- TdsRecordBufferSetter.cs
- VideoDrawing.cs
- DeploymentSection.cs
- CmsInterop.cs
- SafePointer.cs
- AesCryptoServiceProvider.cs
- LineProperties.cs
- PropertyGeneratedEventArgs.cs
- DataListItemCollection.cs
- RuleEngine.cs
- MultiPartWriter.cs
- HtmlTable.cs
- DataRelation.cs
- ButtonChrome.cs
- ObjectPropertyMapping.cs
- RandomNumberGenerator.cs
- DataGridViewColumnConverter.cs
- BitmapMetadata.cs
- ImpersonateTokenRef.cs
- NavigationCommands.cs
- TableAdapterManagerGenerator.cs
- TransformedBitmap.cs
- Policy.cs
- Environment.cs
- Size.cs
- InkCanvas.cs
- TypeConverterHelper.cs
- RemoteWebConfigurationHostStream.cs
- WindowsFormsHelpers.cs
- dtdvalidator.cs
- ParameterModifier.cs
- InvalidPropValue.cs
- Simplifier.cs
- SynchronizingStream.cs
- WindowsPrincipal.cs
- ReadOnlyObservableCollection.cs
- OleDbSchemaGuid.cs
- ComponentRenameEvent.cs
- Trace.cs
- BoolExpressionVisitors.cs
- PerformanceCounterManager.cs
- Literal.cs
- TargetInvocationException.cs
- DesignerCommandAdapter.cs
- Form.cs
- ToolStripComboBox.cs
- TypeBinaryExpression.cs
- FontSizeConverter.cs
- CommunicationException.cs
- InheritablePropertyChangeInfo.cs
- ChangeDirector.cs
- ListViewTableRow.cs
- EntityCommand.cs
- MouseEventArgs.cs
- ValidatingCollection.cs
- LocalTransaction.cs
- ManipulationStartingEventArgs.cs