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
- TypeConverterHelper.cs
- AggregateException.cs
- EventBookmark.cs
- HtmlEmptyTagControlBuilder.cs
- TreeNodeEventArgs.cs
- UrlPath.cs
- FileLogRecordStream.cs
- VisualBrush.cs
- SourceFilter.cs
- CalendarModeChangedEventArgs.cs
- GeneralTransform3DTo2DTo3D.cs
- MsmqChannelFactory.cs
- CompoundFileDeflateTransform.cs
- AuthStoreRoleProvider.cs
- SharedPerformanceCounter.cs
- PointUtil.cs
- ParserOptions.cs
- TextEditorThreadLocalStore.cs
- Configuration.cs
- DataGridColumnHeadersPresenterAutomationPeer.cs
- CommandConverter.cs
- Rotation3D.cs
- PerfService.cs
- Function.cs
- LogAppendAsyncResult.cs
- WebResponse.cs
- DecodeHelper.cs
- ApplicationProxyInternal.cs
- CreateParams.cs
- IteratorFilter.cs
- PeerUnsafeNativeCryptMethods.cs
- Ops.cs
- PeerContact.cs
- MemberDescriptor.cs
- ProxyHwnd.cs
- Assert.cs
- GenericWebPart.cs
- InvokeCompletedEventArgs.cs
- Label.cs
- ActivityDefaults.cs
- Membership.cs
- SqlCharStream.cs
- CodeCastExpression.cs
- PathFigure.cs
- XmlDocumentFragment.cs
- CodeAttributeArgument.cs
- SettingsAttributes.cs
- FunctionDetailsReader.cs
- SerializationTrace.cs
- Comparer.cs
- FormViewDesigner.cs
- _ConnectOverlappedAsyncResult.cs
- StyleModeStack.cs
- ServiceRouteHandler.cs
- HwndSourceKeyboardInputSite.cs
- XmlReaderDelegator.cs
- BamlLocalizationDictionary.cs
- TreePrinter.cs
- XsltLoader.cs
- ListViewSortEventArgs.cs
- ScaleTransform3D.cs
- TextTreeObjectNode.cs
- GlobalizationAssembly.cs
- GroupItem.cs
- WeakRefEnumerator.cs
- SqlUtil.cs
- PrtCap_Public_Simple.cs
- EUCJPEncoding.cs
- ComponentEditorPage.cs
- Transform3D.cs
- ObfuscateAssemblyAttribute.cs
- ITreeGenerator.cs
- ProxyManager.cs
- TranslateTransform.cs
- ListBase.cs
- AssemblyHash.cs
- sqlser.cs
- Trace.cs
- OleDbConnectionInternal.cs
- RtType.cs
- DeclarationUpdate.cs
- DefaultConfirmation.cs
- NodeFunctions.cs
- AttachedProperty.cs
- XPathNavigator.cs
- SmtpNtlmAuthenticationModule.cs
- UpdatePanelControlTrigger.cs
- ColorAnimation.cs
- Tracer.cs
- EntityDataSourceDesigner.cs
- WindowInteropHelper.cs
- ButtonFieldBase.cs
- Point3DAnimation.cs
- MessagePropertyFilter.cs
- InkCanvasSelectionAdorner.cs
- DataViewManagerListItemTypeDescriptor.cs
- HttpStreamXmlDictionaryWriter.cs
- GenerateTemporaryTargetAssembly.cs
- UriTemplateVariablePathSegment.cs
- OrderByExpression.cs