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
- XmlLoader.cs
- DbDataSourceEnumerator.cs
- TableHeaderCell.cs
- ConnectionManagementElement.cs
- RegexInterpreter.cs
- SqlConnectionManager.cs
- figurelength.cs
- ErrorInfoXmlDocument.cs
- WhitespaceRule.cs
- PreviewPageInfo.cs
- FrameworkContentElementAutomationPeer.cs
- SerializationObjectManager.cs
- OrderingExpression.cs
- ServiceNameElement.cs
- CounterCreationDataCollection.cs
- ValidationPropertyAttribute.cs
- ParsedAttributeCollection.cs
- PtsHelper.cs
- CodeConstructor.cs
- DbParameterCollection.cs
- DataSourceCacheDurationConverter.cs
- OleDbParameter.cs
- HtmlTitle.cs
- HMACMD5.cs
- EntityObject.cs
- ReachBasicContext.cs
- BinaryKeyIdentifierClause.cs
- TabPage.cs
- FactoryId.cs
- GridItemPattern.cs
- TreeViewAutomationPeer.cs
- StaticTextPointer.cs
- BrowserTree.cs
- DBProviderConfigurationHandler.cs
- dtdvalidator.cs
- versioninfo.cs
- HandledEventArgs.cs
- SoapSchemaImporter.cs
- TableRow.cs
- UIElementHelper.cs
- PropertyKey.cs
- RemotingServices.cs
- HotSpotCollection.cs
- ToolStripGripRenderEventArgs.cs
- BindingsCollection.cs
- CorrelationToken.cs
- WindowsGraphics.cs
- XmlAutoDetectWriter.cs
- UnaryNode.cs
- RuntimeConfigLKG.cs
- SafeLibraryHandle.cs
- UpDownBase.cs
- CompositeFontInfo.cs
- PngBitmapDecoder.cs
- MtomMessageEncodingBindingElement.cs
- ConnectionStringsExpressionBuilder.cs
- TrackingStringDictionary.cs
- ListViewUpdateEventArgs.cs
- ToolStripItemEventArgs.cs
- IdentityModelDictionary.cs
- HandleExceptionArgs.cs
- OlePropertyStructs.cs
- ParserOptions.cs
- DefinitionUpdate.cs
- ComplexObject.cs
- DetailsViewInsertEventArgs.cs
- WindowsEditBox.cs
- MsmqBindingElementBase.cs
- PrintControllerWithStatusDialog.cs
- MenuItemStyle.cs
- File.cs
- XamlClipboardData.cs
- XXXOnTypeBuilderInstantiation.cs
- MDIWindowDialog.cs
- SecurityManager.cs
- ToolStripDropDownClosingEventArgs.cs
- WebPartEditVerb.cs
- CommunicationObjectFaultedException.cs
- OneToOneMappingSerializer.cs
- SymbolEqualComparer.cs
- HandleRef.cs
- HttpProfileGroupBase.cs
- AuthorizationPolicyTypeElementCollection.cs
- QueryResults.cs
- MessageEnumerator.cs
- UnauthorizedAccessException.cs
- QueueTransferProtocol.cs
- WindowsTreeView.cs
- SafeEventLogReadHandle.cs
- Pen.cs
- hresults.cs
- WindowsListViewItemCheckBox.cs
- NativeActivityFaultContext.cs
- ProxyWebPart.cs
- TPLETWProvider.cs
- SqlFunctionAttribute.cs
- XamlFxTrace.cs
- ListControlBuilder.cs
- TypeConstant.cs
- TableLayoutColumnStyleCollection.cs