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
- StorageMappingItemCollection.cs
- TextBreakpoint.cs
- SqlTypesSchemaImporter.cs
- ImageList.cs
- ConnectionStringsSection.cs
- EventData.cs
- DataTable.cs
- FocusManager.cs
- __Filters.cs
- ConfigurationSettings.cs
- SourceLineInfo.cs
- OuterGlowBitmapEffect.cs
- XmlNodeList.cs
- TableItemPattern.cs
- Panel.cs
- ExceptionHandler.cs
- Camera.cs
- WorkerRequest.cs
- XslTransform.cs
- SspiWrapper.cs
- Int16AnimationUsingKeyFrames.cs
- ManagedWndProcTracker.cs
- QueueTransferProtocol.cs
- ResourceDictionaryCollection.cs
- InstanceBehavior.cs
- SelectionItemProviderWrapper.cs
- AssociationTypeEmitter.cs
- ProxyManager.cs
- WebPartsSection.cs
- Rect3DValueSerializer.cs
- WindowsToolbarAsMenu.cs
- HttpListenerContext.cs
- AccessedThroughPropertyAttribute.cs
- PackageRelationshipSelector.cs
- ImmComposition.cs
- ParallelActivityDesigner.cs
- MessageFormatterConverter.cs
- AccessibleObject.cs
- PasswordRecovery.cs
- EventRecord.cs
- SqlConnectionManager.cs
- GeometryValueSerializer.cs
- CloudCollection.cs
- CodeSnippetExpression.cs
- CachingHintValidation.cs
- UserNamePasswordClientCredential.cs
- EndOfStreamException.cs
- MailHeaderInfo.cs
- XmlSiteMapProvider.cs
- QueryStack.cs
- SerialReceived.cs
- FormattedTextSymbols.cs
- Propagator.JoinPropagator.cs
- WriteLineDesigner.xaml.cs
- ObjectTag.cs
- DiagnosticsConfiguration.cs
- ListSourceHelper.cs
- SmtpReplyReader.cs
- ReflectionServiceProvider.cs
- DecoratedNameAttribute.cs
- ServiceChannelFactory.cs
- InputLangChangeRequestEvent.cs
- handlecollector.cs
- CodeChecksumPragma.cs
- XmlSchemaParticle.cs
- ParentQuery.cs
- SmiContextFactory.cs
- ConvertEvent.cs
- Highlights.cs
- HtmlControlAdapter.cs
- SimpleBitVector32.cs
- HttpCacheParams.cs
- RelationshipWrapper.cs
- InvalidProgramException.cs
- PerformanceCounter.cs
- MergeFailedEvent.cs
- TextInfo.cs
- ConfigurationValidatorAttribute.cs
- BlockingCollection.cs
- DataListCommandEventArgs.cs
- FormView.cs
- TableLayoutPanelCellPosition.cs
- XmlArrayAttribute.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- ManagedWndProcTracker.cs
- DataBoundControlAdapter.cs
- BaseContextMenu.cs
- RenderData.cs
- HwndTarget.cs
- OleServicesContext.cs
- webclient.cs
- sqlpipe.cs
- TypeReference.cs
- EntityCommandCompilationException.cs
- ThreadAttributes.cs
- KnownIds.cs
- InternalConfigEventArgs.cs
- TextCompositionEventArgs.cs
- ITreeGenerator.cs
- PolicyStatement.cs