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
- XsltLoader.cs
- SecurityElement.cs
- Transform.cs
- DataGridViewRowCollection.cs
- MatrixAnimationUsingKeyFrames.cs
- TextBoxLine.cs
- TimestampInformation.cs
- ForeignKeyConstraint.cs
- XmlSchemaAttributeGroupRef.cs
- BooleanStorage.cs
- VirtualDirectoryMappingCollection.cs
- BreakRecordTable.cs
- CollectionExtensions.cs
- MimeAnyImporter.cs
- DelegatingTypeDescriptionProvider.cs
- ExceptionValidationRule.cs
- SmiEventSink_DeferedProcessing.cs
- DeferredSelectedIndexReference.cs
- ExtendedPropertyDescriptor.cs
- XmlImplementation.cs
- ToolStripGripRenderEventArgs.cs
- DateBoldEvent.cs
- SystemWebSectionGroup.cs
- RelatedCurrencyManager.cs
- FilteredSchemaElementLookUpTable.cs
- StaticExtension.cs
- HierarchicalDataSourceControl.cs
- DetailsViewRow.cs
- SQLInt16.cs
- ChildTable.cs
- ScrollData.cs
- StateFinalizationActivity.cs
- oledbmetadatacolumnnames.cs
- ScalarConstant.cs
- FeatureManager.cs
- ConfigUtil.cs
- PointAnimationUsingPath.cs
- SafeLibraryHandle.cs
- DataGridViewDataConnection.cs
- MessageContractMemberAttribute.cs
- ResourceManager.cs
- UserPreferenceChangedEventArgs.cs
- CapabilitiesRule.cs
- TaskHelper.cs
- DefinitionUpdate.cs
- HttpConfigurationSystem.cs
- EntityPropertyMappingAttribute.cs
- OleDbCommandBuilder.cs
- OverlappedAsyncResult.cs
- QilTernary.cs
- TdsParserSessionPool.cs
- RegexCharClass.cs
- TextDecorationCollectionConverter.cs
- MouseDevice.cs
- ManifestResourceInfo.cs
- LinqDataSourceValidationException.cs
- ImageBrush.cs
- DataFieldConverter.cs
- ModuleBuilderData.cs
- LocalizedNameDescriptionPair.cs
- QilReference.cs
- SettingsAttributes.cs
- ValidatorCompatibilityHelper.cs
- SimpleRecyclingCache.cs
- InterleavedZipPartStream.cs
- TableLayoutStyleCollection.cs
- StorageSetMapping.cs
- BrowserDefinitionCollection.cs
- WhereQueryOperator.cs
- XPathAncestorQuery.cs
- NetworkInformationException.cs
- IgnoreFileBuildProvider.cs
- ScrollEventArgs.cs
- ReturnEventArgs.cs
- CodePageUtils.cs
- DisplayInformation.cs
- RuntimeHandles.cs
- X509ChainElement.cs
- TableLayoutSettings.cs
- SmiEventStream.cs
- BinaryUtilClasses.cs
- WebPageTraceListener.cs
- NullRuntimeConfig.cs
- LateBoundBitmapDecoder.cs
- FrameworkReadOnlyPropertyMetadata.cs
- ZipIOExtraFieldZip64Element.cs
- XPathAxisIterator.cs
- EngineSite.cs
- DesignerSerializerAttribute.cs
- SqlProvider.cs
- CultureSpecificCharacterBufferRange.cs
- CorePropertiesFilter.cs
- ProgramNode.cs
- OperationAbortedException.cs
- DataTableMappingCollection.cs
- QilPatternVisitor.cs
- MemberRelationshipService.cs
- CodeExpressionCollection.cs
- JournalEntryListConverter.cs
- GeometryGroup.cs