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
- WizardStepCollectionEditor.cs
- DoubleAnimation.cs
- IODescriptionAttribute.cs
- CompilerGeneratedAttribute.cs
- TemplatedWizardStep.cs
- SqlClientWrapperSmiStreamChars.cs
- QueryLifecycle.cs
- AliasedExpr.cs
- DataControlPagerLinkButton.cs
- _DomainName.cs
- AddressHeaderCollection.cs
- FrameworkTextComposition.cs
- ContentElementAutomationPeer.cs
- Currency.cs
- Lasso.cs
- AuthorizationRuleCollection.cs
- Msec.cs
- Config.cs
- TableLayoutColumnStyleCollection.cs
- SerializationSectionGroup.cs
- ExpressionEvaluator.cs
- DrawTreeNodeEventArgs.cs
- ImageDesigner.cs
- BufferBuilder.cs
- Int32CAMarshaler.cs
- Directory.cs
- TraceLog.cs
- PaperSource.cs
- FunctionImportMapping.cs
- PassportAuthenticationModule.cs
- exports.cs
- RIPEMD160.cs
- ToolStripItemImageRenderEventArgs.cs
- NativeMethods.cs
- PrincipalPermission.cs
- AssemblyNameUtility.cs
- IsolatedStorageFileStream.cs
- AutomationPatternInfo.cs
- RootDesignerSerializerAttribute.cs
- Classification.cs
- ReadOnlyPropertyMetadata.cs
- EmptyElement.cs
- TypeSystemHelpers.cs
- _ChunkParse.cs
- FixedTextPointer.cs
- ElementHost.cs
- ResolveCriteria11.cs
- WindowsStatusBar.cs
- PaperSource.cs
- BindingValueChangedEventArgs.cs
- FrameworkElementFactory.cs
- Listbox.cs
- DirectoryNotFoundException.cs
- FontWeight.cs
- SspiWrapper.cs
- DetailsViewCommandEventArgs.cs
- ObjectDataProvider.cs
- CodeArrayCreateExpression.cs
- SemanticResolver.cs
- EventLogConfiguration.cs
- PublishLicense.cs
- WindowsListBox.cs
- InstanceLockTracking.cs
- DispatcherHookEventArgs.cs
- SqlErrorCollection.cs
- CodePrimitiveExpression.cs
- NamespaceInfo.cs
- StreamGeometry.cs
- OLEDB_Enum.cs
- TypeNameConverter.cs
- ScriptingRoleServiceSection.cs
- hresults.cs
- ModelVisual3D.cs
- DataGridViewCellStyleChangedEventArgs.cs
- GetIndexBinder.cs
- Debug.cs
- DataGridRow.cs
- HttpSessionStateBase.cs
- JsonReaderWriterFactory.cs
- DataGridHelper.cs
- LineServices.cs
- hwndwrapper.cs
- Scalars.cs
- Version.cs
- TPLETWProvider.cs
- TypeElement.cs
- ResourceBinder.cs
- SqlParameterCollection.cs
- QueueProcessor.cs
- WsatTransactionFormatter.cs
- DataRecordInternal.cs
- OutputCacheProfile.cs
- ListBoxItemAutomationPeer.cs
- Timer.cs
- TransactionException.cs
- SoapSchemaImporter.cs
- DrawingImage.cs
- ObjectView.cs
- Rectangle.cs
- EditorServiceContext.cs