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
- DataPagerCommandEventArgs.cs
- ImpersonationContext.cs
- _AutoWebProxyScriptHelper.cs
- ProtocolsConfigurationEntry.cs
- LambdaCompiler.Logical.cs
- COMException.cs
- NodeFunctions.cs
- ListView.cs
- addressfiltermode.cs
- NTAccount.cs
- XpsLiterals.cs
- ValueType.cs
- DbParameterHelper.cs
- ObjectContextServiceProvider.cs
- InputLanguageSource.cs
- DeclarativeExpressionConditionDeclaration.cs
- Currency.cs
- LayoutEngine.cs
- OleDbParameter.cs
- AssertUtility.cs
- basemetadatamappingvisitor.cs
- HMACSHA384.cs
- XmlBinaryReader.cs
- AutomationElement.cs
- RepeaterCommandEventArgs.cs
- ToolStripDesigner.cs
- ConstraintStruct.cs
- RuleConditionDialog.Designer.cs
- LinqDataSource.cs
- Win32MouseDevice.cs
- CollectionViewSource.cs
- ScrollItemProviderWrapper.cs
- MutexSecurity.cs
- AssemblyInfo.cs
- SchemaElementLookUpTableEnumerator.cs
- SecurityTokenContainer.cs
- WebZone.cs
- TogglePattern.cs
- CodeSubDirectory.cs
- OleDbReferenceCollection.cs
- WebException.cs
- Send.cs
- MarkupWriter.cs
- IsolatedStorageFile.cs
- FontUnitConverter.cs
- ResolveDuplex11AsyncResult.cs
- BlockExpression.cs
- ContentHostHelper.cs
- HashSet.cs
- DeploymentSection.cs
- PropertyMappingExceptionEventArgs.cs
- DocumentViewerAutomationPeer.cs
- OdbcInfoMessageEvent.cs
- DataViewManager.cs
- SecUtil.cs
- Executor.cs
- SerializationInfo.cs
- EnumerationRangeValidationUtil.cs
- WebReference.cs
- RepeatBehaviorConverter.cs
- DataKey.cs
- XsltSettings.cs
- RoleExceptions.cs
- Effect.cs
- DataPager.cs
- ContextProperty.cs
- ContentFilePart.cs
- TableProviderWrapper.cs
- RemoteWebConfigurationHostServer.cs
- XmlConvert.cs
- PerformanceCountersElement.cs
- ModelFactory.cs
- FileDetails.cs
- XmlSiteMapProvider.cs
- XmlSchemaComplexContent.cs
- CompiledRegexRunnerFactory.cs
- Track.cs
- KnownAssemblyEntry.cs
- DecimalConverter.cs
- oledbconnectionstring.cs
- AttachmentService.cs
- Floater.cs
- BindingFormattingDialog.cs
- DecoratedNameAttribute.cs
- DesignerFrame.cs
- ThicknessAnimationBase.cs
- CompilerGeneratedAttribute.cs
- ContainerVisual.cs
- Content.cs
- PrivateFontCollection.cs
- OdbcException.cs
- TableItemProviderWrapper.cs
- DbConnectionStringCommon.cs
- BaseCollection.cs
- DrawToolTipEventArgs.cs
- FormattedText.cs
- DispatcherSynchronizationContext.cs
- RegexGroupCollection.cs
- HttpProfileBase.cs
- DockAndAnchorLayout.cs