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
- oledbmetadatacolumnnames.cs
- XmlSchemaAnyAttribute.cs
- PtsHelper.cs
- UriTemplateQueryValue.cs
- FormatSettings.cs
- GridItem.cs
- Message.cs
- FormsAuthentication.cs
- Scene3D.cs
- OleDbParameterCollection.cs
- IndexingContentUnit.cs
- DatagridviewDisplayedBandsData.cs
- _ListenerResponseStream.cs
- GroupStyle.cs
- StorageBasedPackageProperties.cs
- WindowsGraphics.cs
- ReverseInheritProperty.cs
- DataGridViewSortCompareEventArgs.cs
- MemberAccessException.cs
- TransportBindingElement.cs
- ValidatorCompatibilityHelper.cs
- FlatButtonAppearance.cs
- GraphicsPathIterator.cs
- EmptyEnumerator.cs
- Setter.cs
- JulianCalendar.cs
- ProxyDataContractResolver.cs
- ErrorView.xaml.cs
- XamlTreeBuilderBamlRecordWriter.cs
- ToolbarAUtomationPeer.cs
- Run.cs
- ExtensibleClassFactory.cs
- _SecureChannel.cs
- HierarchicalDataSourceControl.cs
- ConfigurationValidatorAttribute.cs
- DataView.cs
- ComponentSerializationService.cs
- CodeLinePragma.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- WebPartMovingEventArgs.cs
- SqlBulkCopyColumnMapping.cs
- PartManifestEntry.cs
- printdlgexmarshaler.cs
- HashAlgorithm.cs
- DateTimeOffset.cs
- Part.cs
- InputBindingCollection.cs
- QueryServiceConfigHandle.cs
- WebPartConnectionsCloseVerb.cs
- Automation.cs
- FormsAuthenticationCredentials.cs
- ObjectQueryExecutionPlan.cs
- ExtensibleClassFactory.cs
- UserControlParser.cs
- CollectionBase.cs
- TableItemStyle.cs
- SplitterPanel.cs
- CustomUserNameSecurityTokenAuthenticator.cs
- GenericAuthenticationEventArgs.cs
- ConversionContext.cs
- ActivityInfo.cs
- UnmanagedMemoryStream.cs
- HyperLinkStyle.cs
- XmlLanguageConverter.cs
- FlowDecisionDesigner.xaml.cs
- SettingsPropertyWrongTypeException.cs
- ResourceReferenceExpression.cs
- XpsImage.cs
- WebPartMenu.cs
- FrameworkElementAutomationPeer.cs
- URLMembershipCondition.cs
- PropertyGeneratedEventArgs.cs
- BuildProviderAppliesToAttribute.cs
- FileDialogPermission.cs
- Nullable.cs
- MediaContext.cs
- BaseAsyncResult.cs
- ConstraintManager.cs
- CodeDirectionExpression.cs
- MetadataItemCollectionFactory.cs
- SoapFault.cs
- CancellationTokenSource.cs
- UpdateTranslator.cs
- SystemUdpStatistics.cs
- NativeMethods.cs
- MethodSet.cs
- ApplicationContext.cs
- ScriptingScriptResourceHandlerSection.cs
- RuleInfoComparer.cs
- FtpRequestCacheValidator.cs
- ListViewInsertionMark.cs
- UserPreferenceChangedEventArgs.cs
- InternalConfigRoot.cs
- UnsafeNativeMethods.cs
- MatrixCamera.cs
- DefaultExpressionVisitor.cs
- ListViewPagedDataSource.cs
- StateManagedCollection.cs
- ReflectionTypeLoadException.cs
- ViewEvent.cs