Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WF / Activities / Designers / WebServiceFaultDesigner.cs / 1305376 / WebServiceFaultDesigner.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(WebServiceFaultDesignerTheme))]
internal sealed class WebServiceFaultDesigner : ActivityDesigner
{
#region Properties and Methods
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")
{
TypeDescriptor.Refresh(e.Activity);
}
}
}
#endregion
}
#region WebServiceFaultDesignerTheme
internal sealed class WebServiceFaultDesignerTheme : ActivityDesignerTheme
{
public WebServiceFaultDesignerTheme(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
- QuadraticBezierSegment.cs
- ObjectTag.cs
- DocumentPage.cs
- Metadata.cs
- MeasureItemEvent.cs
- SyndicationItemFormatter.cs
- AggregationMinMaxHelpers.cs
- ListControl.cs
- TemplateBamlRecordReader.cs
- XPathArrayIterator.cs
- Int64AnimationBase.cs
- DataGridColumn.cs
- ByteArrayHelperWithString.cs
- UIAgentAsyncEndRequest.cs
- WebPartManager.cs
- XomlCompilerParameters.cs
- COMException.cs
- UInt64Converter.cs
- _WebProxyDataBuilder.cs
- QueryExecutionOption.cs
- FixUp.cs
- DataGridCellInfo.cs
- SchemaEntity.cs
- StatusBarPanelClickEvent.cs
- AvTrace.cs
- FixedPage.cs
- ListViewGroup.cs
- EncoderBestFitFallback.cs
- CaseStatementSlot.cs
- ObfuscationAttribute.cs
- GlobalEventManager.cs
- LongValidator.cs
- ReachPageContentCollectionSerializer.cs
- SoapFormatter.cs
- UpdateCompiler.cs
- PathFigureCollection.cs
- ObjectQueryProvider.cs
- Normalizer.cs
- AnimationClock.cs
- CommandLibraryHelper.cs
- PackageDigitalSignatureManager.cs
- BufferedGraphicsManager.cs
- DrawingDrawingContext.cs
- MatrixAnimationBase.cs
- URLMembershipCondition.cs
- SocketManager.cs
- HuffmanTree.cs
- MetadataItemEmitter.cs
- NonClientArea.cs
- DesignerCategoryAttribute.cs
- Component.cs
- PenCursorManager.cs
- Binding.cs
- MobileListItemCollection.cs
- SiteMapDataSourceView.cs
- ContentElementAutomationPeer.cs
- DisplayInformation.cs
- SiteOfOriginPart.cs
- MaskDescriptors.cs
- SafeHandles.cs
- coordinator.cs
- XpsInterleavingPolicy.cs
- KeysConverter.cs
- DateTime.cs
- versioninfo.cs
- EdmItemCollection.OcAssemblyCache.cs
- CatalogPartCollection.cs
- EntityModelBuildProvider.cs
- ActiveXHost.cs
- XpsFilter.cs
- DesignerRegion.cs
- ConfigurationStrings.cs
- StylusSystemGestureEventArgs.cs
- VirtualPathProvider.cs
- IisTraceListener.cs
- ListBoxAutomationPeer.cs
- PeerCustomResolverBindingElement.cs
- DbDataRecord.cs
- HtmlInputPassword.cs
- DiscoveryServiceExtension.cs
- ScriptResourceAttribute.cs
- ProcessHostFactoryHelper.cs
- Equal.cs
- DateTimeFormatInfo.cs
- _TimerThread.cs
- XamlDesignerSerializationManager.cs
- TextModifier.cs
- WorkflowInstance.cs
- followingsibling.cs
- DelegateBodyWriter.cs
- KeyboardInputProviderAcquireFocusEventArgs.cs
- StylusPointPropertyInfoDefaults.cs
- ThreadExceptionDialog.cs
- DateTimeFormat.cs
- XmlParserContext.cs
- ControlCollection.cs
- Span.cs
- RuntimeEnvironment.cs
- HttpApplication.cs
- Drawing.cs