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
- ConfigXmlWhitespace.cs
- Keyboard.cs
- GridViewDeletedEventArgs.cs
- WebPartAddingEventArgs.cs
- FilterException.cs
- RemoteCryptoTokenProvider.cs
- SecurityContextTokenValidationException.cs
- WriteableBitmap.cs
- AssemblyUtil.cs
- EventData.cs
- WaitHandleCannotBeOpenedException.cs
- HMAC.cs
- ReflectionServiceProvider.cs
- Clock.cs
- DataFieldConverter.cs
- SecuritySessionSecurityTokenAuthenticator.cs
- AppSecurityManager.cs
- AsyncResult.cs
- StylusDownEventArgs.cs
- DBConnection.cs
- DataGridItemCollection.cs
- Size.cs
- SqlInternalConnectionSmi.cs
- TextBox.cs
- WorkflowPrinting.cs
- AutomationProperty.cs
- DataServiceQueryOfT.cs
- SqlDataSourceFilteringEventArgs.cs
- StringUtil.cs
- WebScriptMetadataMessageEncodingBindingElement.cs
- ClickablePoint.cs
- InputLanguageProfileNotifySink.cs
- PeerCollaborationPermission.cs
- TemplateControlParser.cs
- RSAPKCS1SignatureDeformatter.cs
- AnnotationComponentManager.cs
- NonSerializedAttribute.cs
- ShutDownListener.cs
- FileDialogPermission.cs
- TdsEnums.cs
- XmlTextReaderImpl.cs
- recordstatescratchpad.cs
- Schema.cs
- LinkButton.cs
- TemplateXamlParser.cs
- EndpointConfigContainer.cs
- InstalledVoice.cs
- QueryableDataSourceEditData.cs
- CatalogZoneBase.cs
- ManagedIStream.cs
- AxWrapperGen.cs
- ColorPalette.cs
- XmlQueryOutput.cs
- LabelDesigner.cs
- HttpFileCollection.cs
- PlatformNotSupportedException.cs
- DescendantOverDescendantQuery.cs
- SegmentInfo.cs
- UserPreferenceChangingEventArgs.cs
- DataKeyPropertyAttribute.cs
- Viewport3DAutomationPeer.cs
- ConfigurationLoaderException.cs
- ListViewInsertedEventArgs.cs
- DataPagerFieldItem.cs
- EdmConstants.cs
- LogRecordSequence.cs
- GenericsInstances.cs
- TabControlAutomationPeer.cs
- EventHandlersStore.cs
- loginstatus.cs
- OTFRasterizer.cs
- CustomErrorsSectionWrapper.cs
- HttpChannelBindingToken.cs
- PrintPageEvent.cs
- RawStylusInput.cs
- SystemException.cs
- TableLayoutRowStyleCollection.cs
- WebPartDescription.cs
- TemplateKeyConverter.cs
- NetPeerTcpBindingElement.cs
- DirectoryNotFoundException.cs
- XmlSchemaAll.cs
- EditingCommands.cs
- GradientBrush.cs
- DataRelation.cs
- DataServiceException.cs
- BorderGapMaskConverter.cs
- HttpContextServiceHost.cs
- TargetConverter.cs
- BigInt.cs
- XmlObjectSerializerReadContext.cs
- RuleProcessor.cs
- sortedlist.cs
- Quaternion.cs
- SqlDependencyUtils.cs
- SqlTriggerContext.cs
- Switch.cs
- WindowShowOrOpenTracker.cs
- ProfilePropertySettingsCollection.cs
- DataKey.cs