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
- WebPartDisplayModeCollection.cs
- ColorKeyFrameCollection.cs
- ValidationSummary.cs
- ForeignConstraint.cs
- WindowsSspiNegotiation.cs
- DrawingBrush.cs
- PropertyIDSet.cs
- SelectiveScrollingGrid.cs
- X509ChainElement.cs
- MatrixKeyFrameCollection.cs
- TableLayoutCellPaintEventArgs.cs
- TimeSpanValidatorAttribute.cs
- SrgsRule.cs
- XmlAutoDetectWriter.cs
- JsonQNameDataContract.cs
- EntityDataSourceViewSchema.cs
- XPathArrayIterator.cs
- DbConnectionStringCommon.cs
- ReverseQueryOperator.cs
- Block.cs
- WmfPlaceableFileHeader.cs
- AutomationEvent.cs
- PtsPage.cs
- LinearKeyFrames.cs
- XmlReflectionImporter.cs
- PageCatalogPart.cs
- CodeComment.cs
- ConfigXmlDocument.cs
- ExpandCollapseProviderWrapper.cs
- IsolatedStorageException.cs
- Zone.cs
- NotImplementedException.cs
- BuildProviderCollection.cs
- CompModSwitches.cs
- ViewBox.cs
- DBParameter.cs
- XmlQueryOutput.cs
- CodeGenerator.cs
- AutomationPatternInfo.cs
- WinFormsComponentEditor.cs
- EmissiveMaterial.cs
- TrailingSpaceComparer.cs
- WebPartManagerDesigner.cs
- DataGridViewButtonCell.cs
- TdsEnums.cs
- Material.cs
- SearchForVirtualItemEventArgs.cs
- WebServiceParameterData.cs
- DetailsViewPageEventArgs.cs
- Currency.cs
- DocumentPage.cs
- Span.cs
- MD5.cs
- CodeRemoveEventStatement.cs
- FormViewInsertedEventArgs.cs
- EmbeddedObject.cs
- SqlConnectionManager.cs
- ModuleBuilder.cs
- RemotingClientProxy.cs
- StreamedWorkflowDefinitionContext.cs
- PathFigureCollection.cs
- MatrixIndependentAnimationStorage.cs
- TextDecorationCollectionConverter.cs
- LayoutDump.cs
- EmbeddedMailObject.cs
- SpecularMaterial.cs
- CannotUnloadAppDomainException.cs
- PresentationAppDomainManager.cs
- X509Certificate.cs
- RemoteHelper.cs
- CertificateManager.cs
- MetadataException.cs
- BitmapDecoder.cs
- PipelineModuleStepContainer.cs
- FixUpCollection.cs
- XmlAttributeOverrides.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs
- OutOfMemoryException.cs
- GroupBoxRenderer.cs
- TextServicesCompartmentContext.cs
- DirectoryNotFoundException.cs
- StyleModeStack.cs
- MenuItem.cs
- SslStream.cs
- SqlFormatter.cs
- HelpInfo.cs
- BitmapFrameEncode.cs
- DocumentPageViewAutomationPeer.cs
- WebPartCollection.cs
- ProgressBarRenderer.cs
- HMACSHA512.cs
- HMACSHA256.cs
- TableSectionStyle.cs
- KeyPressEvent.cs
- OdbcCommandBuilder.cs
- FixedPageStructure.cs
- shaperfactory.cs
- TableCell.cs
- SerialErrors.cs
- MenuDesigner.cs