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
- SplineKeyFrames.cs
- EventPropertyMap.cs
- SurrogateChar.cs
- NumberFormatInfo.cs
- FixedStringLookup.cs
- DoubleLinkList.cs
- Timer.cs
- Camera.cs
- Int16.cs
- FloaterParagraph.cs
- DataViewSetting.cs
- Constants.cs
- storepermission.cs
- SiteMapNodeCollection.cs
- StorageFunctionMapping.cs
- ObjRef.cs
- AspNetHostingPermission.cs
- ScrollProviderWrapper.cs
- OutputCacheSettingsSection.cs
- CrossSiteScriptingValidation.cs
- HwndAppCommandInputProvider.cs
- WebControl.cs
- SqlTriggerAttribute.cs
- OleServicesContext.cs
- SafeNativeMethods.cs
- PropertyCollection.cs
- WebPartEditorOkVerb.cs
- Object.cs
- BooleanToVisibilityConverter.cs
- Win32SafeHandles.cs
- SqlRowUpdatedEvent.cs
- DrawingCollection.cs
- Partitioner.cs
- SystemFonts.cs
- IdentityHolder.cs
- TimeSpanStorage.cs
- NavigationCommands.cs
- DocumentXmlWriter.cs
- QueryCursorEventArgs.cs
- EventMappingSettingsCollection.cs
- SecurityTokenProvider.cs
- Invariant.cs
- GridToolTip.cs
- ICollection.cs
- DataQuery.cs
- FlowLayoutPanel.cs
- NativeMethods.cs
- TemplateControlParser.cs
- StopStoryboard.cs
- KeyPressEvent.cs
- PolyLineSegment.cs
- FileVersion.cs
- TimelineClockCollection.cs
- AccessibleObject.cs
- FtpCachePolicyElement.cs
- XamlTypeMapperSchemaContext.cs
- Soap.cs
- Win32Native.cs
- ChtmlFormAdapter.cs
- UnmanagedMemoryAccessor.cs
- ControlCollection.cs
- RuleInfoComparer.cs
- MatrixAnimationUsingPath.cs
- CannotUnloadAppDomainException.cs
- CodeArrayCreateExpression.cs
- HitTestFilterBehavior.cs
- Substitution.cs
- LZCodec.cs
- ConstNode.cs
- WasEndpointConfigContainer.cs
- MembershipPasswordException.cs
- OwnerDrawPropertyBag.cs
- ObjectManager.cs
- WebSysDisplayNameAttribute.cs
- PreservationFileReader.cs
- MailWebEventProvider.cs
- DashStyles.cs
- DataGridViewLinkCell.cs
- MemberRelationshipService.cs
- TypedDataSourceCodeGenerator.cs
- VerificationException.cs
- StorageSetMapping.cs
- WindowsListViewScroll.cs
- EffectiveValueEntry.cs
- SafeViewOfFileHandle.cs
- AuthenticationSchemesHelper.cs
- UnknownWrapper.cs
- PropertyIDSet.cs
- Char.cs
- DataErrorValidationRule.cs
- DnsPermission.cs
- ReadOnlyCollectionBase.cs
- CodeEntryPointMethod.cs
- RepeaterDesigner.cs
- BlurBitmapEffect.cs
- XmlSchemaNotation.cs
- SafeCoTaskMem.cs
- CorrelationTokenTypeConvertor.cs
- CompositeControl.cs
- LiteralText.cs