Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / WebForms / System / Web / UI / Design / WebFormDesignerActionService.cs / 1 / WebFormDesignerActionService.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.Design { using System; using System.Collections; using System.Collections.Specialized; using System.ComponentModel; using System.ComponentModel.Design; using System.Design; using System.Diagnostics; using System.Drawing; using System.Drawing.Design; using System.Globalization; using System.Resources; using System.Web.Compilation; using System.Web.UI; ////// public class WebFormsDesignerActionService : DesignerActionService { public WebFormsDesignerActionService(IServiceProvider serviceProvider) : base(serviceProvider) { } protected override void GetComponentDesignerActions(IComponent component, DesignerActionListCollection actionLists) { if (component == null) { throw new ArgumentNullException("component"); } if (actionLists == null) { throw new ArgumentNullException("actionLists"); } IServiceContainer sc = component.Site as IServiceContainer; if (sc != null) { DesignerCommandSet dcs = (DesignerCommandSet)sc.GetService(typeof(DesignerCommandSet)); if (dcs != null) { DesignerActionListCollection pullCollection = dcs.ActionLists; if (pullCollection != null) { actionLists.AddRange(pullCollection); } } // if we don't find any, add the verbs for this component there... if ((actionLists.Count == 0) || ((actionLists.Count == 1) && (actionLists[0] is ControlDesigner.ControlDesignerActionList))) { DesignerVerbCollection verbs = dcs.Verbs; if (verbs != null && verbs.Count != 0) { DesignerVerb[] verbsArray = new DesignerVerb[verbs.Count]; verbs.CopyTo(verbsArray, 0); actionLists.Add(new DesignerActionVerbList(verbsArray)); } } } } } } // 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
- SecurityAlgorithmSuiteConverter.cs
- NativeBuffer.cs
- MenuScrollingVisibilityConverter.cs
- ObjectListItemCollection.cs
- Evidence.cs
- TableItemStyle.cs
- ContextMenuAutomationPeer.cs
- ImageSourceValueSerializer.cs
- DictionarySectionHandler.cs
- Fonts.cs
- ObjectSecurity.cs
- VisualStyleTypesAndProperties.cs
- SectionXmlInfo.cs
- PublishLicense.cs
- PassportAuthenticationEventArgs.cs
- AnonymousIdentificationModule.cs
- Socket.cs
- PrimitiveXmlSerializers.cs
- WmpBitmapDecoder.cs
- FilterException.cs
- PeerNameRegistration.cs
- Trustee.cs
- GetWinFXPath.cs
- RuntimeConfig.cs
- FormatControl.cs
- LambdaCompiler.Generated.cs
- SecurityTokenProvider.cs
- TypeListConverter.cs
- FileSystemWatcher.cs
- XamlClipboardData.cs
- Link.cs
- _RequestCacheProtocol.cs
- PeerMessageDispatcher.cs
- DataViewSetting.cs
- AssemblyGen.cs
- KeyProperty.cs
- PropertyDescriptorGridEntry.cs
- _FtpControlStream.cs
- FlatButtonAppearance.cs
- UnwrappedTypesXmlSerializerManager.cs
- ListViewItemSelectionChangedEvent.cs
- TextTreeExtractElementUndoUnit.cs
- DecimalAnimationBase.cs
- MultiPageTextView.cs
- TreeViewTemplateSelector.cs
- TCPListener.cs
- OrderByBuilder.cs
- XmlCountingReader.cs
- Win32Exception.cs
- WorkflowView.cs
- DocumentReferenceCollection.cs
- StylusPlugin.cs
- FormViewModeEventArgs.cs
- ComponentResourceKeyConverter.cs
- COSERVERINFO.cs
- DataGridViewCellFormattingEventArgs.cs
- GridViewHeaderRowPresenter.cs
- UInt32Converter.cs
- RMEnrollmentPage3.cs
- IIS7UserPrincipal.cs
- UserControlFileEditor.cs
- ReverseQueryOperator.cs
- MissingMethodException.cs
- ScrollableControl.cs
- DataGridCell.cs
- CaseExpr.cs
- AccessControlEntry.cs
- unitconverter.cs
- ConstraintConverter.cs
- NextPreviousPagerField.cs
- recordstate.cs
- XmlAttributeProperties.cs
- Attributes.cs
- GlyphRunDrawing.cs
- EdmType.cs
- SharedPersonalizationStateInfo.cs
- GraphicsPathIterator.cs
- WebPartZone.cs
- IPEndPoint.cs
- StyleModeStack.cs
- Triangle.cs
- RadioButtonRenderer.cs
- CodeNamespaceImportCollection.cs
- Page.cs
- DetailsViewDeleteEventArgs.cs
- FrameworkName.cs
- StagingAreaInputItem.cs
- LoadMessageLogger.cs
- __TransparentProxy.cs
- DrawingContextWalker.cs
- XPathAncestorIterator.cs
- RegexStringValidatorAttribute.cs
- NonBatchDirectoryCompiler.cs
- AuthorizationSection.cs
- ExtensionWindowHeader.cs
- TextCompositionEventArgs.cs
- HttpApplicationFactory.cs
- EnumConverter.cs
- UrlMapping.cs
- CompressedStack.cs