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(ICollection children)
{
}
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
- BaseTemplateParser.cs
- CallbackValidatorAttribute.cs
- ObservableDictionary.cs
- HttpCacheVaryByContentEncodings.cs
- DateTimeSerializationSection.cs
- Bezier.cs
- Region.cs
- ElementNotEnabledException.cs
- BinaryObjectInfo.cs
- ScriptingAuthenticationServiceSection.cs
- UxThemeWrapper.cs
- SizeIndependentAnimationStorage.cs
- WebPartUtil.cs
- DefaultObjectMappingItemCollection.cs
- DocumentEventArgs.cs
- DataGridColumnHeaderAutomationPeer.cs
- ChangeBlockUndoRecord.cs
- DeclaredTypeElementCollection.cs
- AppDomain.cs
- NumberFunctions.cs
- PublishLicense.cs
- HyperLinkField.cs
- TabControl.cs
- Form.cs
- mda.cs
- WorkflowMarkupSerializerMapping.cs
- XPathNavigatorKeyComparer.cs
- DataGridParentRows.cs
- RoleGroup.cs
- ReliableChannelListener.cs
- GenericTypeParameterBuilder.cs
- MetadataCollection.cs
- SynchronizingStream.cs
- PageStatePersister.cs
- Vector3DCollectionConverter.cs
- HandledEventArgs.cs
- XamlParser.cs
- CompiledQuery.cs
- CharacterMetricsDictionary.cs
- WinEventQueueItem.cs
- BookmarkOptionsHelper.cs
- RegisteredHiddenField.cs
- HiddenFieldPageStatePersister.cs
- XmlILStorageConverter.cs
- DefaultTraceListener.cs
- RequiredFieldValidator.cs
- PseudoWebRequest.cs
- ReflectionUtil.cs
- ConstructorBuilder.cs
- ValidatorCollection.cs
- CustomValidator.cs
- oledbmetadatacollectionnames.cs
- DataContractSerializer.cs
- NameNode.cs
- SystemUdpStatistics.cs
- TileBrush.cs
- SurrogateChar.cs
- ImageListImage.cs
- ProviderCommandInfoUtils.cs
- PersonalizablePropertyEntry.cs
- InternalTypeHelper.cs
- CodeExpressionRuleDeclaration.cs
- HorizontalAlignConverter.cs
- UIElementPropertyUndoUnit.cs
- XmlTextEncoder.cs
- XmlElementList.cs
- UpdateRecord.cs
- ClientUrlResolverWrapper.cs
- FormsAuthenticationConfiguration.cs
- WebBrowserDocumentCompletedEventHandler.cs
- EntityViewContainer.cs
- TextEffectResolver.cs
- SequentialWorkflowRootDesigner.cs
- DataGridViewCellPaintingEventArgs.cs
- XmlSchemaAppInfo.cs
- UpdatePanel.cs
- ZipIOLocalFileBlock.cs
- HtmlTableCellCollection.cs
- FontUnit.cs
- ItemCheckedEvent.cs
- DataBoundControlAdapter.cs
- SharedPersonalizationStateInfo.cs
- TableRowsCollectionEditor.cs
- DebugView.cs
- FrameSecurityDescriptor.cs
- MeasureItemEvent.cs
- EntityDataSource.cs
- ProcessHost.cs
- ProfileParameter.cs
- ImportCatalogPart.cs
- Expander.cs
- ISO2022Encoding.cs
- CardSpaceException.cs
- HighlightVisual.cs
- Blend.cs
- FileEnumerator.cs
- ListenerBinder.cs
- ConfigurationStrings.cs
- SchemaSetCompiler.cs
- ScalarOps.cs