Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WF / Activities / Designers / WebServiceResponseDesigner.cs / 1305376 / WebServiceResponseDesigner.cs
using System; using System.Collections; using System.Collections.Generic; using System.Reflection; using System.Runtime.Serialization; using System.ComponentModel; using System.ComponentModel.Design; using System.Workflow.ComponentModel; using System.Workflow.ComponentModel.Design; using System.Workflow.ComponentModel.Compiler; using System.Windows.Forms.Design; using System.Security.Permissions; using System.Drawing; using System.Drawing.Design; using System.Drawing.Drawing2D; using System.Windows.Forms; namespace System.Workflow.Activities { [ActivityDesignerTheme(typeof(WebServiceResponseDesignerTheme))] internal sealed class WebServiceResponseDesigner : ActivityDesigner { #region Properties and Methods protected override void PreFilterProperties(IDictionary properties) { base.PreFilterProperties(properties); ITypeProvider typeProvider = (ITypeProvider)GetService(typeof(ITypeProvider)); if (typeProvider == null) throw new InvalidOperationException(SR.GetString(SR.General_MissingService, typeof(ITypeProvider).FullName)); WebServiceOutputActivity webServiceResponse = this.Activity as WebServiceOutputActivity; webServiceResponse.GetParameterPropertyDescriptors(properties); } protected override void OnActivityChanged(ActivityChangedEventArgs e) { base.OnActivityChanged(e); if (e.Member != null) { // If the receive activity id changed, clear out parameters. if (e.Member.Name == "InputActivityName") { (e.Activity as WebServiceOutputActivity).ParameterBindings.Clear(); TypeDescriptor.Refresh(e.Activity); } } } #endregion } #region WebServiceResponseDesignerTheme internal sealed class WebServiceResponseDesignerTheme : ActivityDesignerTheme { public WebServiceResponseDesignerTheme(WorkflowTheme theme) : base(theme) { this.ForeColor = Color.FromArgb(0xFF, 0x00, 0x00, 0x00); this.BorderColor = Color.FromArgb(0xFF, 0x94, 0xB6, 0xF7); this.BorderStyle = DashStyle.Solid; this.BackColorStart = Color.FromArgb(0xFF, 0xFF, 0xFF, 0xDF); this.BackColorEnd = Color.FromArgb(0xFF, 0xA5, 0xC3, 0xF7); this.BackgroundStyle = LinearGradientMode.Horizontal; } } #endregion } // 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
- AtomicFile.cs
- PropertyKey.cs
- CompilationRelaxations.cs
- DoubleAnimationUsingPath.cs
- FormViewInsertEventArgs.cs
- Vector3DCollectionConverter.cs
- TraceContextRecord.cs
- ThreadStartException.cs
- XmlIncludeAttribute.cs
- CodeTypeOfExpression.cs
- DataGridViewIntLinkedList.cs
- PrePostDescendentsWalker.cs
- Pen.cs
- AssemblyFilter.cs
- InheritanceContextChangedEventManager.cs
- FixedSOMContainer.cs
- CodeStatement.cs
- HttpException.cs
- NativeCppClassAttribute.cs
- ScrollBarRenderer.cs
- OuterGlowBitmapEffect.cs
- EpmSourcePathSegment.cs
- StringAnimationUsingKeyFrames.cs
- MediaPlayerState.cs
- SQLConvert.cs
- ListBoxChrome.cs
- CodeDirectoryCompiler.cs
- DataView.cs
- ContentOperations.cs
- ReflectTypeDescriptionProvider.cs
- RoutedEvent.cs
- DesignerWebPartChrome.cs
- InProcStateClientManager.cs
- ServiceInstallComponent.cs
- UIPropertyMetadata.cs
- SelectionEditingBehavior.cs
- CDSsyncETWBCLProvider.cs
- HTTPNotFoundHandler.cs
- AuthorizationRuleCollection.cs
- GroupItem.cs
- WindowInteractionStateTracker.cs
- SelectionHighlightInfo.cs
- DataObjectEventArgs.cs
- QueuePropertyVariants.cs
- IisHelper.cs
- ExpressionBindings.cs
- HMACSHA1.cs
- HierarchicalDataBoundControlAdapter.cs
- PersonalizationStateInfoCollection.cs
- PrinterUnitConvert.cs
- FileController.cs
- EdmRelationshipRoleAttribute.cs
- TypeBuilder.cs
- NativeMethods.cs
- OneToOneMappingSerializer.cs
- TimeSpan.cs
- UriSection.cs
- ProbeMatchesMessage11.cs
- DefaultTraceListener.cs
- TemplateBaseAction.cs
- RSAOAEPKeyExchangeDeformatter.cs
- TdsParameterSetter.cs
- HuffCodec.cs
- ImageListStreamer.cs
- SqlReferenceCollection.cs
- ListViewCommandEventArgs.cs
- HttpServerVarsCollection.cs
- NamespaceCollection.cs
- HttpSocketManager.cs
- PartialCachingAttribute.cs
- Section.cs
- WebPartDeleteVerb.cs
- MyContact.cs
- SiteMapDataSource.cs
- SerialPort.cs
- DeviceSpecific.cs
- Collection.cs
- OleAutBinder.cs
- WsdlBuildProvider.cs
- DurationConverter.cs
- FileAuthorizationModule.cs
- TextBoxRenderer.cs
- ControlBuilder.cs
- StringValidator.cs
- ISSmlParser.cs
- UIntPtr.cs
- ItemCollection.cs
- Scene3D.cs
- PermissionRequestEvidence.cs
- DataGridViewCellValueEventArgs.cs
- PrintPageEvent.cs
- ActionItem.cs
- TypePropertyEditor.cs
- ProcessManager.cs
- RegexCode.cs
- Property.cs
- JavascriptCallbackBehaviorAttribute.cs
- TableLayoutCellPaintEventArgs.cs
- TextServicesCompartment.cs
- KeyValuePairs.cs