Code:
/ FX-1434 / FX-1434 / 1.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
- DPAPIProtectedConfigurationProvider.cs
- DbDataSourceEnumerator.cs
- WebPartCancelEventArgs.cs
- safelink.cs
- SerialPinChanges.cs
- HtmlProps.cs
- FileEnumerator.cs
- base64Transforms.cs
- Int32AnimationBase.cs
- SelectedDatesCollection.cs
- RadioButton.cs
- SubMenuStyleCollection.cs
- StorageComplexPropertyMapping.cs
- WebPartEditVerb.cs
- ThemeDirectoryCompiler.cs
- TextContainerHelper.cs
- DynamicEndpoint.cs
- PageVisual.cs
- HttpBrowserCapabilitiesBase.cs
- ToolStripSystemRenderer.cs
- DesignBindingEditor.cs
- FormViewModeEventArgs.cs
- DatatypeImplementation.cs
- ArcSegment.cs
- DefaultObjectSerializer.cs
- ClientRuntimeConfig.cs
- DispatcherFrame.cs
- odbcmetadatacolumnnames.cs
- DbBuffer.cs
- HMACRIPEMD160.cs
- HtmlControl.cs
- CopyAction.cs
- InstanceCreationEditor.cs
- HttpPostProtocolReflector.cs
- PersistChildrenAttribute.cs
- Command.cs
- ProcessInfo.cs
- AuthStoreRoleProvider.cs
- serverconfig.cs
- ProviderIncompatibleException.cs
- RegexWorker.cs
- InnerItemCollectionView.cs
- SortableBindingList.cs
- BufferCache.cs
- OptimizedTemplateContentHelper.cs
- TreeNodeBinding.cs
- DBCommand.cs
- Variable.cs
- Avt.cs
- DataControlFieldCollection.cs
- XmlSchemaCollection.cs
- FontInfo.cs
- SettingsProviderCollection.cs
- ColorConverter.cs
- wgx_sdk_version.cs
- DataException.cs
- SqlExpressionNullability.cs
- InteropAutomationProvider.cs
- IPGlobalProperties.cs
- GridViewSortEventArgs.cs
- DataServiceRequestOfT.cs
- DataServiceRequestOfT.cs
- DrawingContext.cs
- CompiledQuery.cs
- OdbcInfoMessageEvent.cs
- Roles.cs
- CacheVirtualItemsEvent.cs
- XmlLinkedNode.cs
- SearchForVirtualItemEventArgs.cs
- DateTimeSerializationSection.cs
- BoundField.cs
- ThreadStaticAttribute.cs
- FlowchartDesignerCommands.cs
- ValidationHelpers.cs
- HtmlInputImage.cs
- XmlCountingReader.cs
- XmlSerializer.cs
- AssemblyResourceLoader.cs
- QilCloneVisitor.cs
- NativeCompoundFileAPIs.cs
- StringStorage.cs
- XPathExpr.cs
- SingleSelectRootGridEntry.cs
- ServerValidateEventArgs.cs
- MergeExecutor.cs
- X509CertificateInitiatorServiceCredential.cs
- ProfileEventArgs.cs
- TabRenderer.cs
- ItemContainerGenerator.cs
- ControlHelper.cs
- TimeSpanValidator.cs
- PrintEvent.cs
- QueryPrefixOp.cs
- TimelineClockCollection.cs
- GridPatternIdentifiers.cs
- XmlName.cs
- FileClassifier.cs
- XmlText.cs
- FlowStep.cs
- DocumentsTrace.cs