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
- XmlTextEncoder.cs
- CollectionBuilder.cs
- MailWebEventProvider.cs
- serverconfig.cs
- XmlSchemaObjectTable.cs
- PointCollection.cs
- ScriptManagerProxy.cs
- AttributeCollection.cs
- ServiceSecurityContext.cs
- PackagePart.cs
- AdobeCFFWrapper.cs
- MatrixTransform3D.cs
- XhtmlTextWriter.cs
- DecodeHelper.cs
- BehaviorEditorPart.cs
- XmlSchemaGroup.cs
- DataGridViewSelectedRowCollection.cs
- ChannelDispatcher.cs
- ToolboxComponentsCreatingEventArgs.cs
- ChtmlMobileTextWriter.cs
- XamlPathDataSerializer.cs
- XmlAttributeOverrides.cs
- LogWriteRestartAreaAsyncResult.cs
- DataGridViewComboBoxCell.cs
- NGCPageContentCollectionSerializerAsync.cs
- FilteredReadOnlyMetadataCollection.cs
- Attributes.cs
- OdbcParameterCollection.cs
- MenuAutomationPeer.cs
- SmtpMail.cs
- NamespaceMapping.cs
- EndpointReference.cs
- MetadataArtifactLoader.cs
- VerificationAttribute.cs
- DbgCompiler.cs
- RectAnimationBase.cs
- DataGridViewRow.cs
- SettingsPropertyCollection.cs
- ContextMenuService.cs
- Hashtable.cs
- AllMembershipCondition.cs
- ByteArrayHelperWithString.cs
- EmbeddedMailObjectsCollection.cs
- PublisherIdentityPermission.cs
- DispatchWrapper.cs
- FixedSOMImage.cs
- ResourceReferenceExpression.cs
- XmlSchemaSimpleTypeList.cs
- ManipulationVelocities.cs
- DataBindingList.cs
- RuleInfoComparer.cs
- HtmlTitle.cs
- GridViewCancelEditEventArgs.cs
- SetterBaseCollection.cs
- InternalConfigRoot.cs
- RolePrincipal.cs
- XmlAnyAttributeAttribute.cs
- LinkConverter.cs
- ParentUndoUnit.cs
- Vars.cs
- Canvas.cs
- FloaterBaseParagraph.cs
- RelationshipNavigation.cs
- WhereaboutsReader.cs
- ClientSideQueueItem.cs
- DockingAttribute.cs
- MetadataArtifactLoaderComposite.cs
- Matrix3DStack.cs
- ConnectorDragDropGlyph.cs
- InkCanvasSelectionAdorner.cs
- login.cs
- ValidationSummary.cs
- Triplet.cs
- XmlBoundElement.cs
- DataContractJsonSerializer.cs
- HierarchicalDataBoundControlAdapter.cs
- TdsParserStateObject.cs
- SecurityDocument.cs
- RichTextBox.cs
- DataGridViewElement.cs
- AppSecurityManager.cs
- AccessDataSource.cs
- MergeFilterQuery.cs
- HMAC.cs
- DelegatingChannelListener.cs
- MapPathBasedVirtualPathProvider.cs
- XmlBufferedByteStreamReader.cs
- DeobfuscatingStream.cs
- ProtectedProviderSettings.cs
- SizeAnimation.cs
- DynamicObjectAccessor.cs
- TextFormatter.cs
- XmlEventCache.cs
- EventTrigger.cs
- FrugalMap.cs
- CaseStatementSlot.cs
- Mutex.cs
- DrawListViewSubItemEventArgs.cs
- CustomAttribute.cs
- SrgsGrammarCompiler.cs