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
- ImpersonateTokenRef.cs
- WebPartTransformerAttribute.cs
- GuidConverter.cs
- AnnotationObservableCollection.cs
- XPathException.cs
- RepeaterItemEventArgs.cs
- HtmlInputSubmit.cs
- SharedUtils.cs
- DispatchWrapper.cs
- MembershipUser.cs
- ClearTypeHintValidation.cs
- CommonDialog.cs
- CredentialManagerDialog.cs
- TargetConverter.cs
- ValidateNames.cs
- FormsAuthenticationModule.cs
- DesigntimeLicenseContext.cs
- CodeAccessSecurityEngine.cs
- XmlSchemaObjectTable.cs
- SessionEndedEventArgs.cs
- LookupBindingPropertiesAttribute.cs
- SystemIPInterfaceProperties.cs
- TableRowCollection.cs
- SmtpNegotiateAuthenticationModule.cs
- ConfigXmlCDataSection.cs
- FileEnumerator.cs
- TypeNameConverter.cs
- TrackingServices.cs
- _FtpControlStream.cs
- SHA1CryptoServiceProvider.cs
- EntryIndex.cs
- WebPartDesigner.cs
- TextTreeInsertElementUndoUnit.cs
- Encoder.cs
- BinaryFormatter.cs
- TypeInitializationException.cs
- QilList.cs
- Floater.cs
- CodeExpressionStatement.cs
- ProcessThread.cs
- PingOptions.cs
- ValidationHelpers.cs
- MultipleFilterMatchesException.cs
- DataObjectAttribute.cs
- ListViewAutomationPeer.cs
- BitSet.cs
- ProcessInputEventArgs.cs
- UnsafeNativeMethods.cs
- CompiledQuery.cs
- EntityDescriptor.cs
- PngBitmapEncoder.cs
- Light.cs
- BitmapImage.cs
- QueryCoreOp.cs
- ColumnHeaderConverter.cs
- CodeSnippetExpression.cs
- PartialCachingAttribute.cs
- SpotLight.cs
- CheckBoxDesigner.cs
- RoleService.cs
- EditableTreeList.cs
- TrackingParameters.cs
- ServicePointManager.cs
- Evidence.cs
- StrokeCollectionDefaultValueFactory.cs
- Deflater.cs
- StrokeCollection2.cs
- PropertyTabChangedEvent.cs
- HMAC.cs
- AnnotationResource.cs
- MethodSet.cs
- TimeZone.cs
- GeneralTransform2DTo3DTo2D.cs
- ObjectQueryState.cs
- RelationshipConverter.cs
- Rotation3DAnimation.cs
- EdmFunctions.cs
- MoveSizeWinEventHandler.cs
- ExceptionUtility.cs
- UInt32Storage.cs
- FixedSOMElement.cs
- SqlBuilder.cs
- DataGridTextBoxColumn.cs
- BorderSidesEditor.cs
- TcpClientSocketManager.cs
- SynchronizingStream.cs
- UpdateTranslator.cs
- TouchFrameEventArgs.cs
- Compress.cs
- Typeface.cs
- DbSourceCommand.cs
- AnimationTimeline.cs
- AdjustableArrowCap.cs
- SafeMemoryMappedViewHandle.cs
- CoTaskMemHandle.cs
- UnknownWrapper.cs
- SmtpMail.cs
- UserMapPath.cs
- TypeConverterAttribute.cs
- TraceSwitch.cs