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
- TraceInternal.cs
- XmlTypeMapping.cs
- TrustLevel.cs
- ApplicationProxyInternal.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- FileDialog.cs
- Matrix.cs
- odbcmetadatacollectionnames.cs
- ExternalException.cs
- HiddenField.cs
- SafeRegistryHandle.cs
- HtmlControlPersistable.cs
- DataListItemEventArgs.cs
- ReadWriteSpinLock.cs
- RuleInfoComparer.cs
- NameValuePermission.cs
- HttpModuleAction.cs
- PerformanceCounterPermissionEntry.cs
- ObjectPersistData.cs
- ComplexObject.cs
- PropertyChangingEventArgs.cs
- DaylightTime.cs
- ColorAnimationBase.cs
- QilNode.cs
- Model3DCollection.cs
- RelatedImageListAttribute.cs
- TrackingProvider.cs
- WsdlInspector.cs
- SemanticResultValue.cs
- SqlCacheDependency.cs
- TextProperties.cs
- HtmlGenericControl.cs
- WindowsScroll.cs
- COSERVERINFO.cs
- HttpHandlerAction.cs
- WaitHandle.cs
- While.cs
- Encoder.cs
- Point3DValueSerializer.cs
- SimpleBitVector32.cs
- CompilationSection.cs
- Matrix.cs
- DefaultHttpHandler.cs
- XPathMessageFilterElementComparer.cs
- ToolStripScrollButton.cs
- Aes.cs
- IpcManager.cs
- StreamingContext.cs
- DictionaryGlobals.cs
- DesignerVerbCollection.cs
- Rule.cs
- HostedHttpTransportManager.cs
- AuthStoreRoleProvider.cs
- ObjectDataSourceView.cs
- Encoding.cs
- EventSetterHandlerConverter.cs
- BitVector32.cs
- EventOpcode.cs
- TypeReference.cs
- ImageListImage.cs
- OutputCacheModule.cs
- _Rfc2616CacheValidators.cs
- CommandBinding.cs
- GlobalizationSection.cs
- FormViewCommandEventArgs.cs
- RequestTimeoutManager.cs
- MouseDevice.cs
- DbMetaDataColumnNames.cs
- ScriptControlDescriptor.cs
- CollectionViewSource.cs
- BitmapDownload.cs
- XmlBaseReader.cs
- CallbackValidator.cs
- SecurityUtils.cs
- BreakRecordTable.cs
- CounterCreationDataCollection.cs
- WebBrowserHelper.cs
- BaseParser.cs
- XXXOnTypeBuilderInstantiation.cs
- XmlDocumentFieldSchema.cs
- NavigationWindowAutomationPeer.cs
- CookielessHelper.cs
- TextElementCollectionHelper.cs
- DebugControllerThread.cs
- StatusBarItem.cs
- RemotingServices.cs
- CompilerCollection.cs
- RequestCachePolicy.cs
- TreeBuilder.cs
- MimeObjectFactory.cs
- CustomErrorsSection.cs
- ADMembershipProvider.cs
- SuppressIldasmAttribute.cs
- CatalogPart.cs
- PrintPreviewDialog.cs
- Span.cs
- IdentityHolder.cs
- DBConnection.cs
- HtmlContainerControl.cs
- BreakSafeBase.cs