Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WF / Activities / Designers / ConditionedDesigner.cs / 1305376 / ConditionedDesigner.cs
namespace System.Workflow.Activities { using System; using System.Text; using System.Reflection; using System.Collections; using System.CodeDom; using System.ComponentModel; using System.ComponentModel.Design; using System.Drawing; using System.Drawing.Drawing2D; using System.Workflow.ComponentModel; using System.Workflow.ComponentModel.Design; #region Class ConditionedDesigner [ActivityDesignerTheme(typeof(ConditionedDesignerTheme))] internal sealed class IfElseBranchDesigner: SequentialActivityDesigner { #region Properties and Methods public override bool CanBeParentedTo(CompositeActivityDesigner parentActivityDesigner) { if (parentActivityDesigner == null) throw new ArgumentNullException("parentActivity"); if (!(parentActivityDesigner.Activity is IfElseActivity)) return false; return base.CanBeParentedTo(parentActivityDesigner); } #endregion } #endregion #region ConditionedDesignerTheme internal sealed class ConditionedDesignerTheme : CompositeDesignerTheme { public ConditionedDesignerTheme(WorkflowTheme theme) : base(theme) { this.ShowDropShadow = false; this.ConnectorStartCap = LineAnchor.None; this.ConnectorEndCap = LineAnchor.ArrowAnchor; this.ForeColor = Color.FromArgb(0xFF, 0x00, 0x64, 0x00); this.BorderColor = Color.FromArgb(0xFF, 0xE0, 0xE0, 0xE0); this.BorderStyle = DashStyle.Dash; this.BackColorStart = Color.FromArgb(0x00, 0x00, 0x00, 0x00); this.BackColorEnd = Color.FromArgb(0x00, 0x00, 0x00, 0x00); } } #endregion } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. namespace System.Workflow.Activities { using System; using System.Text; using System.Reflection; using System.Collections; using System.CodeDom; using System.ComponentModel; using System.ComponentModel.Design; using System.Drawing; using System.Drawing.Drawing2D; using System.Workflow.ComponentModel; using System.Workflow.ComponentModel.Design; #region Class ConditionedDesigner [ActivityDesignerTheme(typeof(ConditionedDesignerTheme))] internal sealed class IfElseBranchDesigner: SequentialActivityDesigner { #region Properties and Methods public override bool CanBeParentedTo(CompositeActivityDesigner parentActivityDesigner) { if (parentActivityDesigner == null) throw new ArgumentNullException("parentActivity"); if (!(parentActivityDesigner.Activity is IfElseActivity)) return false; return base.CanBeParentedTo(parentActivityDesigner); } #endregion } #endregion #region ConditionedDesignerTheme internal sealed class ConditionedDesignerTheme : CompositeDesignerTheme { public ConditionedDesignerTheme(WorkflowTheme theme) : base(theme) { this.ShowDropShadow = false; this.ConnectorStartCap = LineAnchor.None; this.ConnectorEndCap = LineAnchor.ArrowAnchor; this.ForeColor = Color.FromArgb(0xFF, 0x00, 0x64, 0x00); this.BorderColor = Color.FromArgb(0xFF, 0xE0, 0xE0, 0xE0); this.BorderStyle = DashStyle.Dash; this.BackColorStart = Color.FromArgb(0x00, 0x00, 0x00, 0x00); this.BackColorEnd = Color.FromArgb(0x00, 0x00, 0x00, 0x00); } } #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
- InfoCardX509Validator.cs
- CellParagraph.cs
- ResourceCategoryAttribute.cs
- CodeParameterDeclarationExpression.cs
- QuotedPrintableStream.cs
- ChtmlTextWriter.cs
- XamlBrushSerializer.cs
- TokenBasedSetEnumerator.cs
- CodeExpressionStatement.cs
- ScriptingRoleServiceSection.cs
- WindowsBrush.cs
- WebPartConnectVerb.cs
- MenuItemCollection.cs
- CounterSetInstance.cs
- StylusPlugInCollection.cs
- TreeWalker.cs
- XmlReaderSettings.cs
- AuthenticationSection.cs
- FilterEventArgs.cs
- ComplexPropertyEntry.cs
- DataGridViewColumnCollection.cs
- BindingMemberInfo.cs
- TextPatternIdentifiers.cs
- DependencyObjectProvider.cs
- DataGridViewRowContextMenuStripNeededEventArgs.cs
- JulianCalendar.cs
- DocumentPaginator.cs
- SocketException.cs
- basemetadatamappingvisitor.cs
- _AutoWebProxyScriptWrapper.cs
- HtmlInputRadioButton.cs
- Delegate.cs
- ApplicationInfo.cs
- TaskFileService.cs
- CurrencyWrapper.cs
- figurelength.cs
- DefaultValidator.cs
- ReaderWriterLock.cs
- AutomationIdentifier.cs
- RequestCache.cs
- ConfigurationValue.cs
- WinInet.cs
- ScriptResourceMapping.cs
- StrongName.cs
- QueryContinueDragEvent.cs
- WebPartVerbCollection.cs
- InputScopeAttribute.cs
- DeadCharTextComposition.cs
- TextPenaltyModule.cs
- Ports.cs
- NetworkInformationPermission.cs
- XsdDataContractImporter.cs
- SQLCharsStorage.cs
- AnchoredBlock.cs
- FontUnit.cs
- ReadOnlyAttribute.cs
- Int32Storage.cs
- BitmapMetadataEnumerator.cs
- HWStack.cs
- EnumValidator.cs
- RegexParser.cs
- DataGridPagerStyle.cs
- ILGenerator.cs
- UpDownEvent.cs
- AmbientValueAttribute.cs
- HostingEnvironmentSection.cs
- Parser.cs
- MemberAssignment.cs
- XmlDictionaryReaderQuotasElement.cs
- ToggleButtonAutomationPeer.cs
- UnicodeEncoding.cs
- DebugTraceHelper.cs
- ProgressBarHighlightConverter.cs
- CodeSnippetCompileUnit.cs
- HyperLinkField.cs
- SamlSubjectStatement.cs
- WindowsGraphics.cs
- SystemWebExtensionsSectionGroup.cs
- StatusBarPanel.cs
- WindowsGraphicsWrapper.cs
- TreeNodeStyleCollection.cs
- FixedSOMPageElement.cs
- ReadOnlyPermissionSet.cs
- ScrollProperties.cs
- UriTemplateDispatchFormatter.cs
- DBDataPermissionAttribute.cs
- xsdvalidator.cs
- PermissionListSet.cs
- StylusEventArgs.cs
- CustomCategoryAttribute.cs
- ContentElement.cs
- StrokeNode.cs
- EventData.cs
- Matrix.cs
- WebPartMinimizeVerb.cs
- RSAPKCS1SignatureDeformatter.cs
- TemplatePropertyEntry.cs
- UIHelper.cs
- LinkButton.cs
- BuilderPropertyEntry.cs