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
- RbTree.cs
- AbsoluteQuery.cs
- DataViewManager.cs
- SqlClientWrapperSmiStream.cs
- IPEndPoint.cs
- TableDetailsRow.cs
- LockCookie.cs
- CompiledAction.cs
- VisualState.cs
- shaperfactory.cs
- HideDisabledControlAdapter.cs
- SqlInternalConnectionTds.cs
- securitycriticaldataClass.cs
- SqlMethodTransformer.cs
- _SecureChannel.cs
- IPGlobalProperties.cs
- SiteMapPath.cs
- ReferencedCollectionType.cs
- ReadOnlyPropertyMetadata.cs
- GlyphCollection.cs
- Schema.cs
- ColumnPropertiesGroup.cs
- PipelineDeploymentState.cs
- ToolstripProfessionalRenderer.cs
- SimpleWorkerRequest.cs
- EntityCommandCompilationException.cs
- CircleHotSpot.cs
- HtmlTableCellCollection.cs
- ScaleTransform.cs
- CheckableControlBaseAdapter.cs
- ChtmlTextWriter.cs
- TypeDelegator.cs
- CounterCreationDataCollection.cs
- UrlPath.cs
- BindableAttribute.cs
- DataTableReaderListener.cs
- TypeHelper.cs
- BatchParser.cs
- ToolStripDropDown.cs
- InputBinding.cs
- WindowInteractionStateTracker.cs
- PropertyDescriptorCollection.cs
- figurelengthconverter.cs
- XsltSettings.cs
- WebPartChrome.cs
- WebServicesDescriptionAttribute.cs
- CacheEntry.cs
- MetadataException.cs
- RectangleF.cs
- exports.cs
- SoapProcessingBehavior.cs
- FixedHighlight.cs
- ObjectTag.cs
- DbXmlEnabledProviderManifest.cs
- JsonGlobals.cs
- SmtpDigestAuthenticationModule.cs
- SymmetricKeyWrap.cs
- Color.cs
- DataGridViewTopLeftHeaderCell.cs
- DataError.cs
- NativeWindow.cs
- DataStorage.cs
- OpacityConverter.cs
- PropertyChangedEventArgs.cs
- EntityDataSourceValidationException.cs
- InvalidEnumArgumentException.cs
- Calendar.cs
- TracePayload.cs
- AnonymousIdentificationModule.cs
- ValueUtilsSmi.cs
- SessionEndingEventArgs.cs
- SiteMap.cs
- StyleConverter.cs
- OrderedDictionaryStateHelper.cs
- OracleConnectionString.cs
- XPathParser.cs
- FusionWrap.cs
- WindowsListViewItem.cs
- ContentTextAutomationPeer.cs
- HyperLinkColumn.cs
- DataGridCellsPanel.cs
- OnOperation.cs
- XmlObjectSerializer.cs
- RemotingService.cs
- EndpointDiscoveryMetadataCD1.cs
- TypeInfo.cs
- Validator.cs
- DbParameterCollectionHelper.cs
- ProviderUtil.cs
- DataSourceGroupCollection.cs
- SqlTopReducer.cs
- SessionState.cs
- CodeAccessSecurityEngine.cs
- SqlRetyper.cs
- OrderedDictionary.cs
- WindowsListViewItemCheckBox.cs
- ChangeDirector.cs
- TableLayoutRowStyleCollection.cs
- DataGridViewColumnHeaderCell.cs
- Single.cs