Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WF / Activities / Designers / StateFinalizationDesigner.cs / 1305376 / StateFinalizationDesigner.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; using System.Collections.ObjectModel; #region StateFinalizationDesigner [ActivityDesignerTheme(typeof(StateFinalizationDesignerTheme))] internal sealed class StateFinalizationDesigner : System.Workflow.Activities.SequenceDesigner { #region Properties and Methods public override bool CanBeParentedTo(CompositeActivityDesigner parentActivityDesigner) { if (parentActivityDesigner == null) throw new ArgumentNullException("parentActivityDesigner"); if (!(parentActivityDesigner.Activity is StateActivity)) return false; return base.CanBeParentedTo(parentActivityDesigner); } protected override void DoDefaultAction() { base.DoDefaultAction(); EnsureVisible(); } public override bool CanExpandCollapse { get { return false; } } public override bool CanInsertActivities(HitTestInfo insertLocation, ReadOnlyCollectionactivitiesToInsert) { foreach (Activity activity in activitiesToInsert) { if (activity is IEventActivity) return false; } return base.CanInsertActivities(insertLocation, activitiesToInsert); } #endregion } #endregion #region StateFinalizationDesignerTheme internal sealed class StateFinalizationDesignerTheme : CompositeDesignerTheme { public StateFinalizationDesignerTheme(WorkflowTheme theme) : base(theme) { this.ShowDropShadow = false; this.ConnectorStartCap = LineAnchor.None; this.ConnectorEndCap = LineAnchor.ArrowAnchor; this.ForeColor = Color.FromArgb(0xFF, 0x80, 0x00, 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; using System.Collections.ObjectModel; #region StateFinalizationDesigner [ActivityDesignerTheme(typeof(StateFinalizationDesignerTheme))] internal sealed class StateFinalizationDesigner : System.Workflow.Activities.SequenceDesigner { #region Properties and Methods public override bool CanBeParentedTo(CompositeActivityDesigner parentActivityDesigner) { if (parentActivityDesigner == null) throw new ArgumentNullException("parentActivityDesigner"); if (!(parentActivityDesigner.Activity is StateActivity)) return false; return base.CanBeParentedTo(parentActivityDesigner); } protected override void DoDefaultAction() { base.DoDefaultAction(); EnsureVisible(); } public override bool CanExpandCollapse { get { return false; } } public override bool CanInsertActivities(HitTestInfo insertLocation, ReadOnlyCollection activitiesToInsert) { foreach (Activity activity in activitiesToInsert) { if (activity is IEventActivity) return false; } return base.CanInsertActivities(insertLocation, activitiesToInsert); } #endregion } #endregion #region StateFinalizationDesignerTheme internal sealed class StateFinalizationDesignerTheme : CompositeDesignerTheme { public StateFinalizationDesignerTheme(WorkflowTheme theme) : base(theme) { this.ShowDropShadow = false; this.ConnectorStartCap = LineAnchor.None; this.ConnectorEndCap = LineAnchor.ArrowAnchor; this.ForeColor = Color.FromArgb(0xFF, 0x80, 0x00, 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
- GenericRootAutomationPeer.cs
- CatalogPartChrome.cs
- XmlAnyAttributeAttribute.cs
- ToolStripItemImageRenderEventArgs.cs
- RadioButtonFlatAdapter.cs
- BooleanStorage.cs
- CleanUpVirtualizedItemEventArgs.cs
- ComboBox.cs
- MetadataArtifactLoaderComposite.cs
- DataGridRowsPresenter.cs
- ZoomPercentageConverter.cs
- SqlCacheDependencyDatabase.cs
- ClearTypeHintValidation.cs
- Popup.cs
- Descriptor.cs
- TextRangeEdit.cs
- ListChangedEventArgs.cs
- Item.cs
- InternalConfigEventArgs.cs
- ForEachAction.cs
- ZoneMembershipCondition.cs
- PerspectiveCamera.cs
- PocoPropertyAccessorStrategy.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- Int64AnimationUsingKeyFrames.cs
- FacetChecker.cs
- DataGridViewCellPaintingEventArgs.cs
- SchemaElementLookUpTable.cs
- DataServiceQueryException.cs
- RelationshipNavigation.cs
- DescendentsWalkerBase.cs
- HttpListener.cs
- HtmlAnchor.cs
- ProvidersHelper.cs
- BooleanToVisibilityConverter.cs
- MouseBinding.cs
- loginstatus.cs
- ProcessHostConfigUtils.cs
- DbModificationCommandTree.cs
- EntitySqlException.cs
- DrawListViewColumnHeaderEventArgs.cs
- DashStyle.cs
- ThreadAbortException.cs
- Point3DCollection.cs
- BitmapInitialize.cs
- RenderContext.cs
- TreeNodeBinding.cs
- recordstatefactory.cs
- NaturalLanguageHyphenator.cs
- DelegateSerializationHolder.cs
- _BaseOverlappedAsyncResult.cs
- PathFigureCollection.cs
- Separator.cs
- FixedSOMGroup.cs
- HtmlForm.cs
- Partitioner.cs
- SerializationInfo.cs
- VScrollBar.cs
- ECDiffieHellmanCng.cs
- MouseButtonEventArgs.cs
- MarkupCompilePass1.cs
- HwndProxyElementProvider.cs
- SurrogateSelector.cs
- altserialization.cs
- DbConnectionPoolIdentity.cs
- SmtpFailedRecipientsException.cs
- HttpWebRequestElement.cs
- ObjectDataSourceView.cs
- WCFServiceClientProxyGenerator.cs
- ResourceProviderFactory.cs
- XmlSchemaAny.cs
- WebSysDefaultValueAttribute.cs
- X509Utils.cs
- securitycriticaldata.cs
- FrameworkContextData.cs
- TransformerInfo.cs
- RadioButtonPopupAdapter.cs
- XPathQilFactory.cs
- ComponentCommands.cs
- recordstatescratchpad.cs
- Operator.cs
- CommonProperties.cs
- AuthenticationService.cs
- TraceSource.cs
- FunctionMappingTranslator.cs
- OrderedParallelQuery.cs
- BrushValueSerializer.cs
- SQLUtility.cs
- RevocationPoint.cs
- WebBrowserNavigatingEventHandler.cs
- BevelBitmapEffect.cs
- TypeUtils.cs
- DataSetMappper.cs
- HashHelper.cs
- PointAnimationClockResource.cs
- TableRow.cs
- WindowsToolbarAsMenu.cs
- EncryptedReference.cs
- ViewgenContext.cs
- CookieParameter.cs