Code:
/ 4.0 / 4.0 / 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. 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
- Random.cs
- SpeechRecognizer.cs
- CommandDevice.cs
- DataExchangeServiceBinder.cs
- XPathChildIterator.cs
- SerializationStore.cs
- AuthenticateEventArgs.cs
- DataGridCommandEventArgs.cs
- ResponseStream.cs
- Literal.cs
- QualifierSet.cs
- ToolStripTextBox.cs
- ProcessModelSection.cs
- PackageProperties.cs
- TextParagraphCache.cs
- COM2Enum.cs
- ScriptingWebServicesSectionGroup.cs
- ServicePointManagerElement.cs
- MatrixCamera.cs
- PropertyCollection.cs
- DataGridPagerStyle.cs
- ExtensibleSyndicationObject.cs
- GroupQuery.cs
- InitializationEventAttribute.cs
- SkewTransform.cs
- Win32SafeHandles.cs
- DefaultBinder.cs
- ApplicationServiceManager.cs
- SecurityElement.cs
- ConstraintCollection.cs
- BeginStoryboard.cs
- HostingEnvironmentWrapper.cs
- CacheAxisQuery.cs
- ReservationCollection.cs
- MetadataArtifactLoaderFile.cs
- ConnectionManager.cs
- CroppedBitmap.cs
- XmlObjectSerializerReadContextComplexJson.cs
- SmtpMail.cs
- BuildProvider.cs
- TextWriter.cs
- XmlChildNodes.cs
- JsonGlobals.cs
- TableLayoutRowStyleCollection.cs
- NameValueCollection.cs
- UserPreferenceChangedEventArgs.cs
- DispatchChannelSink.cs
- DesignerCategoryAttribute.cs
- ReferenceService.cs
- SRDisplayNameAttribute.cs
- AuthenticationSection.cs
- CounterSampleCalculator.cs
- RuntimeArgumentHandle.cs
- CoreSwitches.cs
- DefaultPropertyAttribute.cs
- RegionInfo.cs
- MessageDirection.cs
- LightweightCodeGenerator.cs
- ParameterModifier.cs
- SymLanguageVendor.cs
- PartialCachingControl.cs
- CommunicationObject.cs
- DateTimeFormat.cs
- SpoolingTaskBase.cs
- TextTreeDeleteContentUndoUnit.cs
- OdbcConnectionStringbuilder.cs
- DetailsViewPageEventArgs.cs
- Path.cs
- ReferenceEqualityComparer.cs
- StyleBamlRecordReader.cs
- CompoundFileIOPermission.cs
- ContractMapping.cs
- ApplicationContext.cs
- TrackingCondition.cs
- SplineQuaternionKeyFrame.cs
- CorrelationToken.cs
- assemblycache.cs
- XmlSchemaElement.cs
- ThicknessAnimationUsingKeyFrames.cs
- ViewEvent.cs
- SafeSecurityHandles.cs
- CompilationUtil.cs
- BooleanFacetDescriptionElement.cs
- FamilyMap.cs
- NotFiniteNumberException.cs
- ResourceKey.cs
- ParserHooks.cs
- remotingproxy.cs
- CellTreeNodeVisitors.cs
- RtfControls.cs
- XamlWriterExtensions.cs
- RuleInfoComparer.cs
- TreeViewCancelEvent.cs
- Identity.cs
- SqlDataSourceCache.cs
- TextEditorCopyPaste.cs
- PropertyToken.cs
- ConnectionManagementSection.cs
- XmlDataContract.cs
- ChangeBlockUndoRecord.cs