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
- OutputWindow.cs
- ObjectCacheHost.cs
- Page.cs
- Behavior.cs
- ViewManagerAttribute.cs
- MailWriter.cs
- AdapterSwitches.cs
- LinkTarget.cs
- RemoteWebConfigurationHost.cs
- Translator.cs
- XmlDomTextWriter.cs
- TransformDescriptor.cs
- ClrPerspective.cs
- EncoderReplacementFallback.cs
- ClientFormsAuthenticationMembershipProvider.cs
- Margins.cs
- GiveFeedbackEventArgs.cs
- OperationCanceledException.cs
- HttpHeaderCollection.cs
- StyleHelper.cs
- DataTransferEventArgs.cs
- UpdatePanelTriggerCollection.cs
- SqlCommandSet.cs
- BevelBitmapEffect.cs
- CorrelationManager.cs
- WinCategoryAttribute.cs
- SimpleWorkerRequest.cs
- NativeMethods.cs
- WebPartsSection.cs
- TextSimpleMarkerProperties.cs
- WorkflowInstanceSuspendedRecord.cs
- SerializationObjectManager.cs
- ImageConverter.cs
- DataGridViewTextBoxEditingControl.cs
- ChtmlPhoneCallAdapter.cs
- CompressStream.cs
- HealthMonitoringSectionHelper.cs
- Drawing.cs
- ButtonChrome.cs
- StrongNameMembershipCondition.cs
- BaseTreeIterator.cs
- BypassElement.cs
- HideDisabledControlAdapter.cs
- PolygonHotSpot.cs
- ComAdminWrapper.cs
- ObjectRef.cs
- HttpInputStream.cs
- SafeNativeMethods.cs
- StdRegProviderWrapper.cs
- XmlExceptionHelper.cs
- SystemResourceKey.cs
- StatusStrip.cs
- XmlTextAttribute.cs
- HttpRuntime.cs
- RectangleHotSpot.cs
- ViewStateException.cs
- TabPanel.cs
- UnsafeNativeMethodsMilCoreApi.cs
- ShapingEngine.cs
- HtmlElement.cs
- SQLInt64Storage.cs
- DataGridViewCheckBoxCell.cs
- BufferedWebEventProvider.cs
- EntityCollection.cs
- WebServiceHandlerFactory.cs
- Internal.cs
- PrintingPermission.cs
- KeyValueConfigurationCollection.cs
- ExtensibleClassFactory.cs
- DataControlField.cs
- XmlUnspecifiedAttribute.cs
- CacheSection.cs
- Fx.cs
- NavigationPropertyEmitter.cs
- ConnectionPoint.cs
- EnumerableRowCollection.cs
- ClientScriptManagerWrapper.cs
- GridViewSelectEventArgs.cs
- LinqDataSourceValidationException.cs
- SqlDataAdapter.cs
- ProfilePropertyNameValidator.cs
- FixedElement.cs
- MetadataItemEmitter.cs
- EDesignUtil.cs
- AutomationElement.cs
- UIElementIsland.cs
- HMACSHA1.cs
- FieldTemplateFactory.cs
- Stylesheet.cs
- IntegerValidator.cs
- SqlWebEventProvider.cs
- EntryWrittenEventArgs.cs
- ClientFormsIdentity.cs
- KnownBoxes.cs
- NotificationContext.cs
- Roles.cs
- WindowsScrollBar.cs
- WorkflowMarkupSerializationProvider.cs
- ClassData.cs
- BuildProvider.cs