Code:
/ 4.0 / 4.0 / 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. 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
- DelimitedListTraceListener.cs
- DataGridViewCellMouseEventArgs.cs
- ZipIOCentralDirectoryFileHeader.cs
- GenericAuthenticationEventArgs.cs
- PassportAuthentication.cs
- _BufferOffsetSize.cs
- CacheMode.cs
- EditorZoneBase.cs
- WebServiceHandlerFactory.cs
- AnnotationAdorner.cs
- Camera.cs
- TableSectionStyle.cs
- DeriveBytes.cs
- TreeNode.cs
- CustomErrorCollection.cs
- ObjectStateEntry.cs
- XmlMembersMapping.cs
- CryptoStream.cs
- DataObjectPastingEventArgs.cs
- UnsafeNativeMethods.cs
- ListBindableAttribute.cs
- InputScopeAttribute.cs
- BuildManager.cs
- RequestSecurityToken.cs
- CustomErrorsSection.cs
- HttpWrapper.cs
- DynamicILGenerator.cs
- HwndKeyboardInputProvider.cs
- XmlEncoding.cs
- EventLogger.cs
- WaitHandle.cs
- RSAOAEPKeyExchangeDeformatter.cs
- DataGridViewCellStyleContentChangedEventArgs.cs
- ToolStripItemImageRenderEventArgs.cs
- ResourceManagerWrapper.cs
- FontStretch.cs
- WeakHashtable.cs
- XmlCharacterData.cs
- FileBasedResourceGroveler.cs
- XmlLangPropertyAttribute.cs
- _ServiceNameStore.cs
- PenContexts.cs
- CharEntityEncoderFallback.cs
- TypeUsageBuilder.cs
- DataStreamFromComStream.cs
- EventLogEntryCollection.cs
- SoapCodeExporter.cs
- KeyValueSerializer.cs
- RadialGradientBrush.cs
- EncoderExceptionFallback.cs
- PostBackTrigger.cs
- BufferAllocator.cs
- Propagator.cs
- ManagementEventArgs.cs
- XmlSchemaCollection.cs
- NativeMethods.cs
- WriterOutput.cs
- _Events.cs
- VirtualizingPanel.cs
- MethodSignatureGenerator.cs
- CharacterMetricsDictionary.cs
- SystemDiagnosticsSection.cs
- SqlCacheDependency.cs
- FloatMinMaxAggregationOperator.cs
- DirectionalLight.cs
- PlatformCulture.cs
- StagingAreaInputItem.cs
- AsyncSerializedWorker.cs
- LayoutEvent.cs
- OneToOneMappingSerializer.cs
- QilChoice.cs
- SecurityUtils.cs
- CodeParameterDeclarationExpression.cs
- Cell.cs
- Model3DCollection.cs
- Operators.cs
- _DisconnectOverlappedAsyncResult.cs
- SqlDataReader.cs
- BooleanAnimationBase.cs
- MULTI_QI.cs
- VisualTreeUtils.cs
- COM2ColorConverter.cs
- Assembly.cs
- CustomTrackingRecord.cs
- PagePropertiesChangingEventArgs.cs
- IDReferencePropertyAttribute.cs
- QuadraticBezierSegment.cs
- DashStyles.cs
- RequestQueue.cs
- FlowNode.cs
- WSSecurityJan2004.cs
- BuildProvidersCompiler.cs
- ProfessionalColorTable.cs
- WindowInteractionStateTracker.cs
- TCPListener.cs
- _HTTPDateParse.cs
- PeerResolverSettings.cs
- CombinedGeometry.cs
- OpenFileDialog.cs
- DesignTable.cs