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
- TagPrefixAttribute.cs
- ApplicationGesture.cs
- HtmlInputButton.cs
- BatchServiceHost.cs
- ToolStripProgressBar.cs
- PropertyOrder.cs
- ObjectHelper.cs
- XPathNodeInfoAtom.cs
- SecurityTokenContainer.cs
- LocatorGroup.cs
- UIElement3DAutomationPeer.cs
- xamlnodes.cs
- WindowsGraphicsWrapper.cs
- TypeLoadException.cs
- RangeBaseAutomationPeer.cs
- LinqDataSourceSelectEventArgs.cs
- Vector3D.cs
- DataGridRowHeader.cs
- TableTextElementCollectionInternal.cs
- RecipientInfo.cs
- EffectiveValueEntry.cs
- ServiceHttpModule.cs
- OleDbInfoMessageEvent.cs
- TailCallAnalyzer.cs
- InternalEnumValidatorAttribute.cs
- ClientTargetCollection.cs
- PartitionResolver.cs
- SmtpFailedRecipientsException.cs
- ClosableStream.cs
- TemplateBindingExtensionConverter.cs
- DoubleAnimationUsingPath.cs
- SchemaReference.cs
- DoubleAnimationBase.cs
- Cursor.cs
- FieldToken.cs
- PDBReader.cs
- PowerModeChangedEventArgs.cs
- EntityParameterCollection.cs
- DataGridViewRowContextMenuStripNeededEventArgs.cs
- InstanceNameConverter.cs
- HtmlLiteralTextAdapter.cs
- Deflater.cs
- GPPOINT.cs
- SemaphoreSlim.cs
- Bits.cs
- _SpnDictionary.cs
- Lasso.cs
- NeedSkipTokenVisitor.cs
- SyndicationSerializer.cs
- SettingsSection.cs
- LogPolicy.cs
- HtmlMeta.cs
- PropertyMetadata.cs
- ValuePatternIdentifiers.cs
- _IPv4Address.cs
- ScriptResourceDefinition.cs
- UInt32.cs
- AutoResizedEvent.cs
- ProjectionPathBuilder.cs
- XPathDescendantIterator.cs
- SafeNativeMethods.cs
- SizeConverter.cs
- MsmqQueue.cs
- BitmapEffectGeneralTransform.cs
- MemoryMappedFile.cs
- CommandSet.cs
- SmtpFailedRecipientsException.cs
- XmlILStorageConverter.cs
- EventLogPermissionEntry.cs
- DocumentScope.cs
- PointConverter.cs
- DataRow.cs
- StringTraceRecord.cs
- TypeDependencyAttribute.cs
- OrderingInfo.cs
- ControlTemplate.cs
- NamespaceCollection.cs
- ListViewCommandEventArgs.cs
- FreeIndexList.cs
- Error.cs
- ObjectRef.cs
- RuntimeConfigurationRecord.cs
- HtmlElementCollection.cs
- AccessDataSourceView.cs
- MachineKey.cs
- Cast.cs
- AddInActivator.cs
- COAUTHINFO.cs
- ApplicationServiceHelper.cs
- IndexingContentUnit.cs
- ConfigPathUtility.cs
- AffineTransform3D.cs
- ThrowOnMultipleAssignment.cs
- FontWeight.cs
- Misc.cs
- StackOverflowException.cs
- HtmlControlDesigner.cs
- TextTreeNode.cs
- ToolStripGripRenderEventArgs.cs
- RemoveStoryboard.cs