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
- BoolExpr.cs
- SqlUnionizer.cs
- DecoderNLS.cs
- UnionCqlBlock.cs
- AutoCompleteStringCollection.cs
- CommandEventArgs.cs
- StateDesigner.Layouts.cs
- SqlParameterCollection.cs
- PLINQETWProvider.cs
- TextBox.cs
- BStrWrapper.cs
- XhtmlCssHandler.cs
- FtpWebResponse.cs
- OleDbDataAdapter.cs
- CommentEmitter.cs
- streamingZipPartStream.cs
- TabletCollection.cs
- FactoryId.cs
- Literal.cs
- AutoResetEvent.cs
- PointConverter.cs
- XmlNamedNodeMap.cs
- externdll.cs
- DataGridLinkButton.cs
- EventLogSession.cs
- CriticalFinalizerObject.cs
- _ListenerRequestStream.cs
- ServiceMemoryGates.cs
- TagNameToTypeMapper.cs
- VectorConverter.cs
- InputScopeManager.cs
- RelationshipConverter.cs
- PagedControl.cs
- CatalogPartChrome.cs
- WorkflowRuntimeEndpoint.cs
- Operand.cs
- RedirectionProxy.cs
- DataServiceBehavior.cs
- XPathConvert.cs
- ScrollViewerAutomationPeer.cs
- PlatformNotSupportedException.cs
- BatchWriter.cs
- X509DefaultServiceCertificateElement.cs
- SqlRowUpdatingEvent.cs
- TextInfo.cs
- TagPrefixCollection.cs
- TabletCollection.cs
- ObjectItemConventionAssemblyLoader.cs
- InteropTrackingRecord.cs
- DataMemberAttribute.cs
- SqlRemoveConstantOrderBy.cs
- GlobalizationAssembly.cs
- SHA512.cs
- EntityCollection.cs
- ResourceExpression.cs
- DocumentSequence.cs
- IdnMapping.cs
- ParserHooks.cs
- DataGridRowHeader.cs
- TextBoxLine.cs
- BinaryKeyIdentifierClause.cs
- SyndicationElementExtensionCollection.cs
- SparseMemoryStream.cs
- ParameterReplacerVisitor.cs
- ChannelManager.cs
- RequestQueue.cs
- SQLMembershipProvider.cs
- RegexBoyerMoore.cs
- ConstraintManager.cs
- ThreadExceptionEvent.cs
- DbConnectionStringCommon.cs
- ContainerTracking.cs
- GACIdentityPermission.cs
- SQLInt16.cs
- WebPartsPersonalization.cs
- Symbol.cs
- CatalogPartDesigner.cs
- unsafenativemethodstextservices.cs
- Base64WriteStateInfo.cs
- UnsafeNativeMethods.cs
- XPathSelfQuery.cs
- EndpointAddressElementBase.cs
- SimpleHandlerBuildProvider.cs
- ButtonRenderer.cs
- ZipPackage.cs
- GeometryCombineModeValidation.cs
- ContainerUtilities.cs
- SqlDataReader.cs
- UIElement3D.cs
- ChannelAcceptor.cs
- SrgsItemList.cs
- Window.cs
- XmlSchemaDatatype.cs
- Control.cs
- EnvelopedPkcs7.cs
- NumberFormatInfo.cs
- EmbeddedMailObject.cs
- tooltip.cs
- XsdDuration.cs
- StyleModeStack.cs