Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx40 / System.Activities / System / Activities / Statements / FlowStep.cs / 1305376 / FlowStep.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.Activities.Statements { using System.Collections.Generic; using System.Activities; using System.ComponentModel; using System.Windows.Markup; [ContentProperty("Action")] public sealed class FlowStep : FlowNode { public FlowStep() { } [DefaultValue(null)] public Activity Action { get; set; } [DefaultValue(null)] [DependsOn("Action")] public FlowNode Next { get; set; } internal override void OnOpen(Flowchart owner, NativeActivityMetadata metadata) { } internal override void GetConnectedNodes(IListconnections) { if (Next != null) { connections.Add(Next); } } internal override void GetChildActivities(ICollection children) { if (Action != null) { children.Add(Action); } } internal bool Execute(NativeActivityContext context, CompletionCallback onCompleted, out FlowNode nextNode) { if (Next == null) { if (TD.FlowchartNextNullIsEnabled()) { TD.FlowchartNextNull(this.Owner.DisplayName); } } if (Action == null) { nextNode = Next; return true; } else { context.ScheduleActivity(Action, onCompleted); nextNode = null; return false; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- BooleanSwitch.cs
- _OverlappedAsyncResult.cs
- PersonalizationStateInfo.cs
- CreateSequence.cs
- DataGridItemCollection.cs
- BackStopAuthenticationModule.cs
- MergeLocalizationDirectives.cs
- AllMembershipCondition.cs
- AuthorizationRule.cs
- BulletedList.cs
- ReadOnlyNameValueCollection.cs
- FieldToken.cs
- VBIdentifierNameEditor.cs
- StackSpiller.cs
- UnsafeNativeMethods.cs
- PrintControllerWithStatusDialog.cs
- FlowLayoutPanelDesigner.cs
- MenuItemBindingCollection.cs
- WebPartTransformerAttribute.cs
- ICspAsymmetricAlgorithm.cs
- BitmapEffectDrawingContextState.cs
- WebWorkflowRole.cs
- ObservableCollection.cs
- ActionMessageFilter.cs
- XmlSchemaRedefine.cs
- ConfigurationManagerInternalFactory.cs
- Codec.cs
- PipelineModuleStepContainer.cs
- MessageDecoder.cs
- DataGridAutoFormatDialog.cs
- RSAPKCS1SignatureFormatter.cs
- BrowserInteropHelper.cs
- EmbeddedMailObject.cs
- X509CertificateTrustedIssuerElement.cs
- SystemPens.cs
- CreateUserWizard.cs
- IntranetCredentialPolicy.cs
- DataGridViewMethods.cs
- UnSafeCharBuffer.cs
- ToolStripDropDownMenu.cs
- ClientApiGenerator.cs
- ResourcePool.cs
- RegexRunnerFactory.cs
- XmlProcessingInstruction.cs
- TextStore.cs
- EditCommandColumn.cs
- RecommendedAsConfigurableAttribute.cs
- Highlights.cs
- SurrogateSelector.cs
- PropVariant.cs
- BamlWriter.cs
- MouseBinding.cs
- HandlerFactoryCache.cs
- ValuePattern.cs
- DesignOnlyAttribute.cs
- SctClaimDictionary.cs
- EasingKeyFrames.cs
- MdiWindowListItemConverter.cs
- LogicalChannel.cs
- XPathLexer.cs
- XmlElement.cs
- CountAggregationOperator.cs
- GenericTypeParameterBuilder.cs
- exports.cs
- URIFormatException.cs
- HMAC.cs
- DetailsViewUpdatedEventArgs.cs
- ComPlusTraceRecord.cs
- DebuggerAttributes.cs
- IdnElement.cs
- ClientScriptManagerWrapper.cs
- HttpDebugHandler.cs
- ActivitySurrogateSelector.cs
- XmlLinkedNode.cs
- UdpSocket.cs
- __Filters.cs
- Pair.cs
- EntitySetBaseCollection.cs
- VirtualizingStackPanel.cs
- ProcessHostConfigUtils.cs
- QueryPrefixOp.cs
- DesignTimeParseData.cs
- Registry.cs
- ListBindableAttribute.cs
- Attribute.cs
- MimeWriter.cs
- ObjectStorage.cs
- Rect3D.cs
- QilTypeChecker.cs
- Button.cs
- Type.cs
- Timer.cs
- Button.cs
- GridSplitter.cs
- columnmapkeybuilder.cs
- ButtonChrome.cs
- ThreadExceptionEvent.cs
- Graphics.cs
- Timer.cs
- DSGeneratorProblem.cs