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
- PropertyKey.cs
- SignatureToken.cs
- ExceptionRoutedEventArgs.cs
- SqlNodeAnnotations.cs
- FixedTextPointer.cs
- ModifierKeysValueSerializer.cs
- InvalidTimeZoneException.cs
- MenuCommands.cs
- EntitySqlQueryBuilder.cs
- DocumentXmlWriter.cs
- ListViewDeletedEventArgs.cs
- GeometryDrawing.cs
- IPAddress.cs
- MessagePropertyFilter.cs
- securitymgrsite.cs
- Rijndael.cs
- PackageRelationshipCollection.cs
- MediaElementAutomationPeer.cs
- TriggerCollection.cs
- HttpCacheParams.cs
- WebPartDisplayModeEventArgs.cs
- DbgCompiler.cs
- ComEventsInfo.cs
- MsmqAppDomainProtocolHandler.cs
- _SingleItemRequestCache.cs
- BuildProviderCollection.cs
- FeatureSupport.cs
- BindingCollectionElement.cs
- ToolboxDataAttribute.cs
- Error.cs
- SessionEndingEventArgs.cs
- TreeChangeInfo.cs
- Serializer.cs
- ScriptResourceInfo.cs
- ProxyWebPartManager.cs
- ToolboxDataAttribute.cs
- OracleBinary.cs
- ListViewPagedDataSource.cs
- Stack.cs
- PerformanceCounterCategory.cs
- ControllableStoryboardAction.cs
- BasicBrowserDialog.designer.cs
- CircleHotSpot.cs
- BitmapPalette.cs
- SettingsSavedEventArgs.cs
- ResumeStoryboard.cs
- DataBindingCollection.cs
- DataGridViewCellCollection.cs
- Rights.cs
- TypeFieldSchema.cs
- BeginCreateSecurityTokenRequest.cs
- ObjectConverter.cs
- ZipFileInfo.cs
- XmlObjectSerializerReadContext.cs
- ConfigurationConverterBase.cs
- ServiceErrorHandler.cs
- RoleManagerModule.cs
- AudioBase.cs
- NullRuntimeConfig.cs
- RegionInfo.cs
- ITextView.cs
- ReadOnlyDictionary.cs
- SqlRowUpdatedEvent.cs
- StateDesigner.TransitionInfo.cs
- ChooseAction.cs
- WeakReferenceKey.cs
- _ProxyRegBlob.cs
- PersonalizableTypeEntry.cs
- OleDbPropertySetGuid.cs
- ShutDownListener.cs
- WmlSelectionListAdapter.cs
- SynchronousReceiveElement.cs
- CapabilitiesSection.cs
- DocumentEventArgs.cs
- PartialCachingControl.cs
- NotCondition.cs
- NameSpaceExtractor.cs
- ContextInformation.cs
- EventDescriptorCollection.cs
- AppModelKnownContentFactory.cs
- FormViewRow.cs
- CriticalFinalizerObject.cs
- Application.cs
- ImageIndexEditor.cs
- MutableAssemblyCacheEntry.cs
- HyperlinkAutomationPeer.cs
- TemplateControl.cs
- DesignerForm.cs
- ProfileInfo.cs
- XPathDocument.cs
- SafeProcessHandle.cs
- OleDbRowUpdatingEvent.cs
- HttpDebugHandler.cs
- TextAdaptor.cs
- Win32Native.cs
- ConnectionProviderAttribute.cs
- Converter.cs
- ServicesUtilities.cs
- OptimizedTemplateContentHelper.cs
- MailMessageEventArgs.cs