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
- Pen.cs
- PackageRelationshipCollection.cs
- DataGridViewComboBoxEditingControl.cs
- PublishLicense.cs
- TextDecoration.cs
- RenderData.cs
- WindowsGraphicsCacheManager.cs
- EntityViewGenerationAttribute.cs
- EventDescriptor.cs
- ColorConvertedBitmapExtension.cs
- SparseMemoryStream.cs
- RectConverter.cs
- UInt16Storage.cs
- BitmapData.cs
- ReachDocumentPageSerializer.cs
- BaseTypeViewSchema.cs
- OleDbSchemaGuid.cs
- ProgressBarAutomationPeer.cs
- InputLanguage.cs
- XmlNodeReader.cs
- TreeSet.cs
- FileNotFoundException.cs
- SqlFileStream.cs
- DesignTimeSiteMapProvider.cs
- OpCopier.cs
- TriggerAction.cs
- XsdSchemaFileEditor.cs
- OracleMonthSpan.cs
- TextEncodedRawTextWriter.cs
- MenuAdapter.cs
- TransportSecurityProtocolFactory.cs
- DbParameterCollectionHelper.cs
- ToolboxComponentsCreatingEventArgs.cs
- ColumnClickEvent.cs
- ActivityTypeDesigner.xaml.cs
- IntranetCredentialPolicy.cs
- GroupQuery.cs
- SubclassTypeValidatorAttribute.cs
- XslCompiledTransform.cs
- DefaultDialogButtons.cs
- SecurityResources.cs
- MouseActionValueSerializer.cs
- DomNameTable.cs
- XmlResolver.cs
- XmlTextReaderImpl.cs
- SafeMILHandle.cs
- DataExpression.cs
- UnauthorizedWebPart.cs
- DataListItemCollection.cs
- ConfigXmlReader.cs
- NumberFunctions.cs
- ScalarConstant.cs
- ErrorFormatterPage.cs
- DataGridViewBindingCompleteEventArgs.cs
- OracleInfoMessageEventArgs.cs
- TypeReference.cs
- EnumConverter.cs
- ZipIOFileItemStream.cs
- ConvertersCollection.cs
- SqlBuilder.cs
- DataGridViewButtonCell.cs
- DataSysAttribute.cs
- WebReferenceOptions.cs
- DynamicRendererThreadManager.cs
- IsolationInterop.cs
- Duration.cs
- ZipArchive.cs
- FormViewPageEventArgs.cs
- ImageSourceConverter.cs
- DesignTimeData.cs
- ListView.cs
- SecurityToken.cs
- XmlRawWriterWrapper.cs
- FormsAuthentication.cs
- BitmapEffectState.cs
- StylusButtonEventArgs.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- DbExpressionVisitor.cs
- HighlightComponent.cs
- CriticalFinalizerObject.cs
- ListBox.cs
- InkCanvasInnerCanvas.cs
- SchemaElementLookUpTable.cs
- CommandManager.cs
- UserControl.cs
- StringWriter.cs
- DeclaredTypeValidatorAttribute.cs
- base64Transforms.cs
- SystemUdpStatistics.cs
- UITypeEditor.cs
- InputScope.cs
- SafeThemeHandle.cs
- AjaxFrameworkAssemblyAttribute.cs
- CompilerWrapper.cs
- SourceFileBuildProvider.cs
- AssemblyHash.cs
- QueueSurrogate.cs
- ActivityExecutor.cs
- NumberFunctions.cs
- XmlSerializationWriter.cs