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
- PackWebResponse.cs
- WhereaboutsReader.cs
- HttpHeaderCollection.cs
- ExpressionBuilder.cs
- CalendarDesigner.cs
- typedescriptorpermission.cs
- DocumentSequence.cs
- CodeArrayCreateExpression.cs
- MethodInfo.cs
- HtmlInputHidden.cs
- Subordinate.cs
- RectangleF.cs
- Int64Animation.cs
- DesignerVerb.cs
- FileSystemWatcher.cs
- PinnedBufferMemoryStream.cs
- SecurityTokenProviderContainer.cs
- BitmapData.cs
- HttpConfigurationContext.cs
- NativeMsmqMessage.cs
- UnknownWrapper.cs
- BitmapFrameDecode.cs
- XmlSerializerVersionAttribute.cs
- SQLSingle.cs
- SmtpFailedRecipientException.cs
- Single.cs
- ButtonBase.cs
- _ListenerRequestStream.cs
- XmlSerializerFormatAttribute.cs
- ProtectedConfiguration.cs
- UnitControl.cs
- PersonalizationStateInfo.cs
- ToolStripPanelRow.cs
- DbgUtil.cs
- NominalTypeEliminator.cs
- XmlElement.cs
- XamlFilter.cs
- Transform.cs
- XmlQueryContext.cs
- MessageRpc.cs
- LogStore.cs
- TimeSpanStorage.cs
- HashStream.cs
- WebResponse.cs
- VisualStyleInformation.cs
- PrintPreviewControl.cs
- DataGridColumnCollection.cs
- processwaithandle.cs
- MenuEventArgs.cs
- ValidationErrorCollection.cs
- NotFiniteNumberException.cs
- MD5CryptoServiceProvider.cs
- TextEditorCopyPaste.cs
- ClientTargetSection.cs
- XmlQualifiedName.cs
- AppDomainManager.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- TableLayoutSettings.cs
- tibetanshape.cs
- TableProviderWrapper.cs
- StaticExtension.cs
- UnsafeNativeMethods.cs
- CellParagraph.cs
- TypeHelpers.cs
- InheritanceAttribute.cs
- NamespaceTable.cs
- InitializerFacet.cs
- WindowsIPAddress.cs
- DataGridViewCellParsingEventArgs.cs
- DPTypeDescriptorContext.cs
- SourceSwitch.cs
- RepeatButtonAutomationPeer.cs
- EntityDataSourceSelectedEventArgs.cs
- _ConnectOverlappedAsyncResult.cs
- CommonProperties.cs
- CompilerScopeManager.cs
- DetailsViewModeEventArgs.cs
- WebBodyFormatMessageProperty.cs
- ServicePoint.cs
- XpsFilter.cs
- Error.cs
- SqlClientMetaDataCollectionNames.cs
- SuppressMessageAttribute.cs
- WebBrowserEvent.cs
- HttpListenerPrefixCollection.cs
- VariantWrapper.cs
- StructuredProperty.cs
- MarkupCompiler.cs
- DeviceFiltersSection.cs
- ConfigXmlAttribute.cs
- MyContact.cs
- ItemCollection.cs
- LogReserveAndAppendState.cs
- EncoderReplacementFallback.cs
- DefaultCommandConverter.cs
- StackSpiller.Generated.cs
- SelectionProviderWrapper.cs
- AsymmetricSignatureDeformatter.cs
- DbParameterHelper.cs
- Monitor.cs