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
- LogAppendAsyncResult.cs
- TdsParserHelperClasses.cs
- ImageButton.cs
- ServicePrincipalNameElement.cs
- JapaneseLunisolarCalendar.cs
- DefaultBindingPropertyAttribute.cs
- ItemDragEvent.cs
- GregorianCalendar.cs
- StateWorkerRequest.cs
- DataObjectFieldAttribute.cs
- ConditionalDesigner.cs
- PageTrueTypeFont.cs
- SettingsBindableAttribute.cs
- SoapClientMessage.cs
- FileAuthorizationModule.cs
- Facet.cs
- invalidudtexception.cs
- RunWorkerCompletedEventArgs.cs
- InvalidOperationException.cs
- TagMapInfo.cs
- Knowncolors.cs
- Latin1Encoding.cs
- DataControlButton.cs
- SqlClientMetaDataCollectionNames.cs
- SQLGuid.cs
- ExtenderProvidedPropertyAttribute.cs
- VirtualizingPanel.cs
- DecimalAnimationUsingKeyFrames.cs
- Itemizer.cs
- AxisAngleRotation3D.cs
- TableRowCollection.cs
- Journaling.cs
- PropertyTab.cs
- ApplicationSecurityManager.cs
- TypedOperationInfo.cs
- StringWriter.cs
- AliasedExpr.cs
- OpenFileDialog.cs
- WorkflowServiceHost.cs
- SHA512Managed.cs
- SerializationStore.cs
- XmlUnspecifiedAttribute.cs
- ValueSerializer.cs
- AssemblyBuilder.cs
- OrthographicCamera.cs
- StringReader.cs
- StringUtil.cs
- VScrollProperties.cs
- InternalTypeHelper.cs
- TabControlCancelEvent.cs
- storagemappingitemcollection.viewdictionary.cs
- HebrewNumber.cs
- OdbcCommandBuilder.cs
- LicFileLicenseProvider.cs
- IxmlLineInfo.cs
- DocumentPaginator.cs
- PersonalizationEntry.cs
- DatagridviewDisplayedBandsData.cs
- AsyncResult.cs
- OleDbConnectionInternal.cs
- DataSourceXmlSerializer.cs
- RealizedColumnsBlock.cs
- cookie.cs
- ProxyHwnd.cs
- ListViewGroup.cs
- InvokePattern.cs
- CompositeCollection.cs
- TypedElement.cs
- MimeObjectFactory.cs
- ArraySubsetEnumerator.cs
- PersonalizationEntry.cs
- PolyQuadraticBezierSegment.cs
- TableColumn.cs
- LocatorManager.cs
- ChangeProcessor.cs
- DocobjHost.cs
- FaultHandlingFilter.cs
- InternalRelationshipCollection.cs
- ListControlDataBindingHandler.cs
- ConsoleKeyInfo.cs
- RegularExpressionValidator.cs
- Base64Stream.cs
- InkPresenter.cs
- GeneralTransform3DTo2D.cs
- DataRelationCollection.cs
- SqlSupersetValidator.cs
- DataColumnChangeEvent.cs
- ClientUtils.cs
- _PooledStream.cs
- FrameworkContentElement.cs
- SoapInteropTypes.cs
- ExcludeFromCodeCoverageAttribute.cs
- BitmapMetadataEnumerator.cs
- FrameDimension.cs
- WebConfigurationManager.cs
- RouteData.cs
- AssemblyContextControlItem.cs
- DistinctQueryOperator.cs
- RankException.cs
- BamlLocalizabilityResolver.cs