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
- XPathEmptyIterator.cs
- DataBinding.cs
- Operators.cs
- SubpageParagraph.cs
- ItemCheckedEvent.cs
- XsltOutput.cs
- ConsoleKeyInfo.cs
- SymmetricKeyWrap.cs
- EllipseGeometry.cs
- PathStreamGeometryContext.cs
- WorkflowFileItem.cs
- ComponentFactoryHelpers.cs
- SiteMapNodeItem.cs
- CodePageUtils.cs
- DocumentGridContextMenu.cs
- OleDbErrorCollection.cs
- SelectionService.cs
- DefaultMergeHelper.cs
- XmlReaderSettings.cs
- DoubleStorage.cs
- _LocalDataStore.cs
- ScalarRestriction.cs
- TimeSpanConverter.cs
- ObsoleteAttribute.cs
- NegationPusher.cs
- Gdiplus.cs
- ExpressionBindingCollection.cs
- EmbossBitmapEffect.cs
- HttpSocketManager.cs
- StrongNameKeyPair.cs
- Constant.cs
- BindingGroup.cs
- ListSortDescription.cs
- AttributeQuery.cs
- DataList.cs
- EmptyImpersonationContext.cs
- DbSourceParameterCollection.cs
- HandlerMappingMemo.cs
- SHA512Managed.cs
- DefaultParameterValueAttribute.cs
- SqlClientFactory.cs
- IPAddressCollection.cs
- MethodBody.cs
- DataListItemEventArgs.cs
- Bookmark.cs
- Error.cs
- Library.cs
- Mutex.cs
- Path.cs
- SmtpNtlmAuthenticationModule.cs
- HostingEnvironmentException.cs
- HebrewCalendar.cs
- DateTime.cs
- SQLConvert.cs
- ConfigurationFileMap.cs
- MimeTypeAttribute.cs
- FileDialogCustomPlace.cs
- WindowsStreamSecurityElement.cs
- EntitySet.cs
- RecordsAffectedEventArgs.cs
- RunInstallerAttribute.cs
- DataServiceRequest.cs
- ReferenceSchema.cs
- DataGridViewRowEventArgs.cs
- AuthorizationRule.cs
- TextChangedEventArgs.cs
- FixUp.cs
- GridItemCollection.cs
- connectionpool.cs
- ActivityScheduledRecord.cs
- Geometry.cs
- ButtonBaseAdapter.cs
- PropertyMapper.cs
- SmuggledIUnknown.cs
- HostSecurityManager.cs
- XhtmlCssHandler.cs
- TagPrefixAttribute.cs
- AQNBuilder.cs
- VectorCollectionConverter.cs
- ECDsa.cs
- LogicalExpr.cs
- RayHitTestParameters.cs
- PageCatalogPartDesigner.cs
- TraceUtils.cs
- SimpleHandlerBuildProvider.cs
- ThreadExceptionEvent.cs
- DependencyObjectPropertyDescriptor.cs
- HyperLinkColumn.cs
- ComEventsSink.cs
- ColorTransform.cs
- QilTernary.cs
- Message.cs
- RealizationDrawingContextWalker.cs
- XPathNodeHelper.cs
- FunctionQuery.cs
- COM2ExtendedBrowsingHandler.cs
- DataColumnCollection.cs
- PackagePartCollection.cs
- IdentityHolder.cs
- _BasicClient.cs