Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx40 / System.Activities / System / Activities / Statements / FlowNode.cs / 1305376 / FlowNode.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.Activities.Statements { using System.Collections.Generic; using System.Activities; using System.ComponentModel; public abstract class FlowNode { Flowchart owner; int cacheId; internal FlowNode() { Index = -1; } internal int Index { get; set; } internal bool IsOpen { get { return this.owner != null; } } internal Flowchart Owner { get { return this.owner; } } // Returns true if this is the first time we've visited this node during this pass internal bool Open(Flowchart owner, NativeActivityMetadata metadata) { if (this.cacheId == owner.CacheId) { // We've already visited this node during this pass if (!object.ReferenceEquals(this.owner, owner)) { metadata.AddValidationError(SR.FlowNodeCannotBeShared(this.owner.DisplayName, owner.DisplayName)); } // Whether we found an issue or not we don't want to change // the metadata during this pass. return false; } OnOpen(owner, metadata); this.owner = owner; this.cacheId = owner.CacheId; this.Index = -1; return true; } internal abstract void OnOpen(Flowchart owner, NativeActivityMetadata metadata); internal virtual void GetChildActivities(ICollectionchildren) { } internal abstract void GetConnectedNodes(IList connections); } } // 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
- VarInfo.cs
- X509Chain.cs
- WindowsListViewScroll.cs
- CodeAttachEventStatement.cs
- _DisconnectOverlappedAsyncResult.cs
- AllMembershipCondition.cs
- CssStyleCollection.cs
- sortedlist.cs
- smtppermission.cs
- UpnEndpointIdentity.cs
- AutomationPatternInfo.cs
- CompositeActivityTypeDescriptor.cs
- HtmlTernaryTree.cs
- ExpressionBuilderCollection.cs
- ProfileModule.cs
- SafeThreadHandle.cs
- KeyProperty.cs
- DataGridViewLinkColumn.cs
- PasswordTextContainer.cs
- ScriptResourceHandler.cs
- ImageMap.cs
- DataGridViewHitTestInfo.cs
- DllNotFoundException.cs
- CodeDOMUtility.cs
- LayoutEvent.cs
- PersistenceTypeAttribute.cs
- HttpApplicationFactory.cs
- DesignerHost.cs
- DelimitedListTraceListener.cs
- QuaternionRotation3D.cs
- SHA1Cng.cs
- HttpInputStream.cs
- RequiredAttributeAttribute.cs
- TimeSpanConverter.cs
- translator.cs
- MarkupObject.cs
- ExceptionList.cs
- AsyncContentLoadedEventArgs.cs
- TripleDESCryptoServiceProvider.cs
- OleDbConnection.cs
- StreamResourceInfo.cs
- SignatureResourcePool.cs
- ActivationArguments.cs
- PopupEventArgs.cs
- WSSecureConversation.cs
- MobileControlPersister.cs
- FixedHyperLink.cs
- AdvancedBindingEditor.cs
- BitmapPalettes.cs
- XmlILOptimizerVisitor.cs
- MasterPage.cs
- FrameSecurityDescriptor.cs
- CommandPlan.cs
- Wildcard.cs
- _LocalDataStoreMgr.cs
- DocumentApplicationJournalEntryEventArgs.cs
- ListControlDataBindingHandler.cs
- StringConverter.cs
- SerialPinChanges.cs
- NameScope.cs
- Compiler.cs
- DragStartedEventArgs.cs
- QueuePropertyVariants.cs
- AsyncOperationManager.cs
- CodeStatementCollection.cs
- HebrewCalendar.cs
- BitmapCache.cs
- XPathAncestorQuery.cs
- XappLauncher.cs
- Switch.cs
- SecurityPermission.cs
- DBBindings.cs
- OrElse.cs
- BindingContext.cs
- NativeObjectSecurity.cs
- PageAsyncTask.cs
- Point4DValueSerializer.cs
- _SingleItemRequestCache.cs
- DbProviderSpecificTypePropertyAttribute.cs
- HttpFileCollectionWrapper.cs
- Monitor.cs
- XmlAttributeProperties.cs
- HttpCachePolicyElement.cs
- sqlnorm.cs
- ToolTipService.cs
- KoreanCalendar.cs
- RankException.cs
- ImageList.cs
- MethodImplAttribute.cs
- IndentTextWriter.cs
- Window.cs
- DebugController.cs
- NegotiateStream.cs
- SqlGenericUtil.cs
- HtmlInputCheckBox.cs
- ApplicationFileCodeDomTreeGenerator.cs
- SubclassTypeValidator.cs
- XamlStream.cs
- MsmqIntegrationOutputChannel.cs
- ComplexType.cs