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
- SecureEnvironment.cs
- XmlLangPropertyAttribute.cs
- CLSCompliantAttribute.cs
- GridViewEditEventArgs.cs
- ResolveMatchesMessage11.cs
- KoreanLunisolarCalendar.cs
- EntityDescriptor.cs
- MultipartIdentifier.cs
- X509CertificateCollection.cs
- TextMarkerSource.cs
- Types.cs
- BrowserDefinition.cs
- SoapAttributeAttribute.cs
- ArraySubsetEnumerator.cs
- XamlGridLengthSerializer.cs
- ModelFunction.cs
- ListBoxAutomationPeer.cs
- SoapAttributeAttribute.cs
- ReadOnlyPropertyMetadata.cs
- XmlWhitespace.cs
- odbcmetadatacolumnnames.cs
- TextDecoration.cs
- Calendar.cs
- HostExecutionContextManager.cs
- CapabilitiesState.cs
- PackageController.cs
- RoleGroupCollection.cs
- PixelFormat.cs
- IndentedWriter.cs
- TypedRowHandler.cs
- TrackBar.cs
- TriggerActionCollection.cs
- OdbcConnectionFactory.cs
- EmbeddedMailObjectsCollection.cs
- SqlBuffer.cs
- PassportIdentity.cs
- WorkflowDesignerMessageFilter.cs
- MenuItemAutomationPeer.cs
- LowerCaseStringConverter.cs
- KeyedCollection.cs
- NumberFormatInfo.cs
- DataGridViewRowsRemovedEventArgs.cs
- SimpleType.cs
- ListMarkerLine.cs
- RbTree.cs
- EntityDataSourceDataSelectionPanel.designer.cs
- SystemNetHelpers.cs
- Compilation.cs
- DBSqlParserTable.cs
- ReliableDuplexSessionChannel.cs
- NCryptSafeHandles.cs
- InfoCardRSAPKCS1SignatureFormatter.cs
- DataSpaceManager.cs
- SQLBoolean.cs
- Int64Animation.cs
- CheckBoxFlatAdapter.cs
- SqlDependencyUtils.cs
- ControlValuePropertyAttribute.cs
- PriorityChain.cs
- SQLDateTime.cs
- EventSinkHelperWriter.cs
- FunctionNode.cs
- ProfilePropertyNameValidator.cs
- MediaContext.cs
- ModelItem.cs
- X509CertificateTrustedIssuerElement.cs
- WorkflowOperationAsyncResult.cs
- Compiler.cs
- RowParagraph.cs
- TextDecorationLocationValidation.cs
- PolicyValidationException.cs
- RecipientInfo.cs
- GridPattern.cs
- PkcsMisc.cs
- UniformGrid.cs
- TimeoutConverter.cs
- Directory.cs
- WpfKnownMember.cs
- HandlerFactoryWrapper.cs
- DataError.cs
- AssemblyInfo.cs
- ListViewUpdatedEventArgs.cs
- ScriptingWebServicesSectionGroup.cs
- _FtpControlStream.cs
- TraceContextRecord.cs
- DrawListViewSubItemEventArgs.cs
- IdentifierElement.cs
- DecoderFallback.cs
- ArrangedElementCollection.cs
- DesignerFrame.cs
- HtmlTernaryTree.cs
- MdbDataFileEditor.cs
- MetabaseServerConfig.cs
- ScrollBar.cs
- HtmlInputControl.cs
- ModifierKeysValueSerializer.cs
- CatalogPart.cs
- FixUp.cs
- RequestTimeoutManager.cs
- DecimalConstantAttribute.cs