Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WF / Common / AuthoringOM / Behaviors / CompensateDesigner.cs / 1305376 / CompensateDesigner.cs
namespace System.Workflow.ComponentModel { using System; using System.Text; using System.Reflection; using System.Collections; using System.Collections.Specialized; using System.CodeDom; using System.ComponentModel; using System.ComponentModel.Design; using System.Drawing; using System.Drawing.Drawing2D; using System.Diagnostics; using System.Workflow.ComponentModel; using System.Workflow.ComponentModel.Design; #region Class CompensateDesigner [ActivityDesignerTheme(typeof(CompensateDesignerTheme))] internal sealed class CompensateDesigner : ActivityDesigner { #region Properties and Methods public override bool CanBeParentedTo(CompositeActivityDesigner parentActivityDesigner) { Activity parentActivity = parentActivityDesigner.Activity; while (parentActivity != null) { if (parentActivity is CancellationHandlerActivity || parentActivity is CompensationHandlerActivity || parentActivity is FaultHandlerActivity) return true; parentActivity = parentActivity.Parent; } return false; } #endregion } #endregion #region CompensateDesignerTheme internal sealed class CompensateDesignerTheme : ActivityDesignerTheme { public CompensateDesignerTheme(WorkflowTheme theme) : base(theme) { this.ForeColor = Color.FromArgb(0xFF, 0x00, 0x00, 0x00); this.BorderColor = Color.FromArgb(0xFF, 0x73, 0x51, 0x08); this.BorderStyle = DashStyle.Solid; this.BackColorStart = Color.FromArgb(0xFF, 0xF7, 0xF7, 0x9C); this.BackColorEnd = Color.FromArgb(0xFF, 0xDE, 0xAA, 0x00); this.BackgroundStyle = LinearGradientMode.Horizontal; } } #endregion } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. namespace System.Workflow.ComponentModel { using System; using System.Text; using System.Reflection; using System.Collections; using System.Collections.Specialized; using System.CodeDom; using System.ComponentModel; using System.ComponentModel.Design; using System.Drawing; using System.Drawing.Drawing2D; using System.Diagnostics; using System.Workflow.ComponentModel; using System.Workflow.ComponentModel.Design; #region Class CompensateDesigner [ActivityDesignerTheme(typeof(CompensateDesignerTheme))] internal sealed class CompensateDesigner : ActivityDesigner { #region Properties and Methods public override bool CanBeParentedTo(CompositeActivityDesigner parentActivityDesigner) { Activity parentActivity = parentActivityDesigner.Activity; while (parentActivity != null) { if (parentActivity is CancellationHandlerActivity || parentActivity is CompensationHandlerActivity || parentActivity is FaultHandlerActivity) return true; parentActivity = parentActivity.Parent; } return false; } #endregion } #endregion #region CompensateDesignerTheme internal sealed class CompensateDesignerTheme : ActivityDesignerTheme { public CompensateDesignerTheme(WorkflowTheme theme) : base(theme) { this.ForeColor = Color.FromArgb(0xFF, 0x00, 0x00, 0x00); this.BorderColor = Color.FromArgb(0xFF, 0x73, 0x51, 0x08); this.BorderStyle = DashStyle.Solid; this.BackColorStart = Color.FromArgb(0xFF, 0xF7, 0xF7, 0x9C); this.BackColorEnd = Color.FromArgb(0xFF, 0xDE, 0xAA, 0x00); 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
- ControlLocalizer.cs
- TimeSpanValidator.cs
- Canvas.cs
- AnnouncementSendsAsyncResult.cs
- XmlSchemaDatatype.cs
- HMACSHA512.cs
- StatusStrip.cs
- SystemWebSectionGroup.cs
- DependencyProperty.cs
- QueryContinueDragEventArgs.cs
- WindowsGraphics2.cs
- SqlConnectionFactory.cs
- ConstrainedDataObject.cs
- ClientFormsAuthenticationCredentials.cs
- DocumentApplicationJournalEntry.cs
- HeaderElement.cs
- JapaneseCalendar.cs
- Selector.cs
- EdmEntityTypeAttribute.cs
- RightNameExpirationInfoPair.cs
- TypeUnloadedException.cs
- WindowsEditBox.cs
- StateChangeEvent.cs
- MetafileHeader.cs
- TextMessageEncoder.cs
- SizeChangedInfo.cs
- DSACryptoServiceProvider.cs
- XpsFixedDocumentReaderWriter.cs
- TextEffectCollection.cs
- DataGridItemEventArgs.cs
- ConditionChanges.cs
- COM2ExtendedTypeConverter.cs
- MarkedHighlightComponent.cs
- FileRegion.cs
- MethodExecutor.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- WebPartEditorCancelVerb.cs
- BrowserDefinitionCollection.cs
- GetPageCompletedEventArgs.cs
- RenderContext.cs
- HtmlTableCellCollection.cs
- ReferencedAssembly.cs
- DispatcherHooks.cs
- UpDownEvent.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- ItemPager.cs
- SQLDecimalStorage.cs
- CollectionConverter.cs
- DeriveBytes.cs
- TextSchema.cs
- PersonalizationProviderHelper.cs
- FixedLineResult.cs
- EndpointDiscoveryMetadata.cs
- PropertyValueUIItem.cs
- RangeBase.cs
- XmlEntity.cs
- ExcludePathInfo.cs
- ResourceBinder.cs
- JournalEntryListConverter.cs
- CheckBoxFlatAdapter.cs
- ParentQuery.cs
- TransactionScopeDesigner.cs
- MetabaseServerConfig.cs
- _HeaderInfoTable.cs
- PageTheme.cs
- TdsParserStateObject.cs
- PenLineCapValidation.cs
- FlowDocumentView.cs
- CombinedGeometry.cs
- TextFindEngine.cs
- CultureTable.cs
- CompModSwitches.cs
- ErrorRuntimeConfig.cs
- DefaultAssemblyResolver.cs
- ObjectQuery.cs
- GradientBrush.cs
- ReferenceEqualityComparer.cs
- NameScopePropertyAttribute.cs
- MobileCategoryAttribute.cs
- ProgressBarRenderer.cs
- TextClipboardData.cs
- Vector3DAnimation.cs
- CancelEventArgs.cs
- DescendantBaseQuery.cs
- MatchAttribute.cs
- HelpEvent.cs
- util.cs
- ECDiffieHellmanCngPublicKey.cs
- ThicknessAnimation.cs
- PointLightBase.cs
- DataGridViewCellStyleContentChangedEventArgs.cs
- MediaTimeline.cs
- TextLineBreak.cs
- SchemaDeclBase.cs
- BuilderElements.cs
- dtdvalidator.cs
- ObjectItemCollection.cs
- IntellisenseTextBox.designer.cs
- OrderedDictionaryStateHelper.cs
- WorkflowStateRollbackService.cs