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
- QueryCursorEventArgs.cs
- XmlAutoDetectWriter.cs
- DataServiceStreamResponse.cs
- QueryStringParameter.cs
- RegexRunner.cs
- WebPartMenuStyle.cs
- PixelFormatConverter.cs
- NumberEdit.cs
- TransformPatternIdentifiers.cs
- IncrementalReadDecoders.cs
- ProcessHostConfigUtils.cs
- DocumentViewerConstants.cs
- OleDbStruct.cs
- LambdaCompiler.ControlFlow.cs
- MetadataArtifactLoader.cs
- RichTextBox.cs
- XPathMessageFilterElementCollection.cs
- OleStrCAMarshaler.cs
- FieldNameLookup.cs
- Converter.cs
- AutoCompleteStringCollection.cs
- ColorContext.cs
- XmlDataProvider.cs
- MissingFieldException.cs
- XpsResourceDictionary.cs
- C14NUtil.cs
- CurrencyManager.cs
- SQLInt64Storage.cs
- ChooseAction.cs
- DynamicQueryableWrapper.cs
- ExceptionValidationRule.cs
- Stackframe.cs
- ObjectListCommandEventArgs.cs
- CqlQuery.cs
- TimeStampChecker.cs
- _TLSstream.cs
- ReverseComparer.cs
- SessionIDManager.cs
- IndicFontClient.cs
- SettingsPropertyValueCollection.cs
- TextBoxRenderer.cs
- AppModelKnownContentFactory.cs
- SecureUICommand.cs
- BaseTemplateParser.cs
- HttpDebugHandler.cs
- Decimal.cs
- TimeSpanOrInfiniteValidator.cs
- SecurityDocument.cs
- ServiceOperation.cs
- XmlTextWriter.cs
- PrimitiveType.cs
- SurrogateChar.cs
- RoutedEventConverter.cs
- TreeViewItemAutomationPeer.cs
- SqlConnectionString.cs
- UnsafeNativeMethods.cs
- ConfigurationStrings.cs
- AssemblyUtil.cs
- AudioFormatConverter.cs
- KeyedHashAlgorithm.cs
- SymbolMethod.cs
- Ray3DHitTestResult.cs
- DisplayInformation.cs
- PanelDesigner.cs
- EmptyQuery.cs
- AspCompat.cs
- LicenseProviderAttribute.cs
- DurableInstanceProvider.cs
- DeferredReference.cs
- filewebresponse.cs
- ScaleTransform3D.cs
- ObjectDataSource.cs
- D3DImage.cs
- FtpCachePolicyElement.cs
- ContentType.cs
- IDictionary.cs
- TypedElement.cs
- followingquery.cs
- NativeMethods.cs
- MissingMethodException.cs
- MouseEventArgs.cs
- TextServicesLoader.cs
- Helpers.cs
- SafeNativeMethodsOther.cs
- PrimitiveType.cs
- NamespaceExpr.cs
- UpDownEvent.cs
- documentsequencetextview.cs
- DescendantQuery.cs
- Base64Encoding.cs
- TextStore.cs
- ToolBarPanel.cs
- Quad.cs
- DefaultPropertyAttribute.cs
- Pair.cs
- TimeoutException.cs
- ArgumentOutOfRangeException.cs
- TemplateBindingExtension.cs
- SaveRecipientRequest.cs
- ActivityDelegate.cs