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
- SqlServer2KCompatibilityCheck.cs
- QilGeneratorEnv.cs
- SortExpressionBuilder.cs
- SBCSCodePageEncoding.cs
- ellipse.cs
- DBSqlParserColumnCollection.cs
- PropertyConverter.cs
- PagedDataSource.cs
- NativeMethods.cs
- UdpDuplexChannel.cs
- DBDataPermission.cs
- ConfigXmlComment.cs
- EventMappingSettings.cs
- NamespaceList.cs
- FixedSOMGroup.cs
- Single.cs
- FatalException.cs
- HtmlHead.cs
- DetailsViewUpdatedEventArgs.cs
- EncryptedReference.cs
- WsatServiceAddress.cs
- SerialPinChanges.cs
- UseLicense.cs
- CultureMapper.cs
- AuthenticationService.cs
- RuleRefElement.cs
- WebAdminConfigurationHelper.cs
- ManipulationDeltaEventArgs.cs
- EventProperty.cs
- ContainerFilterService.cs
- Byte.cs
- EntitySetDataBindingList.cs
- Pair.cs
- ListControlBuilder.cs
- PrimitiveCodeDomSerializer.cs
- KeyFrames.cs
- RegexParser.cs
- ToolStripDropDownMenu.cs
- MachineKeySection.cs
- CodeSubDirectory.cs
- DataSourceUtil.cs
- Utils.cs
- TextBoxBase.cs
- TimersDescriptionAttribute.cs
- PersonalizationProvider.cs
- ObjectListComponentEditor.cs
- MethodImplAttribute.cs
- VisualStateManager.cs
- OutputCacheProfileCollection.cs
- NetworkInterface.cs
- StringInfo.cs
- SeverityFilter.cs
- UpdateCompiler.cs
- PreservationFileWriter.cs
- MetabaseServerConfig.cs
- ConvertersCollection.cs
- ToolStripContentPanel.cs
- GlyphTypeface.cs
- XPathNodeInfoAtom.cs
- NoneExcludedImageIndexConverter.cs
- AssemblyHash.cs
- ObjectReaderCompiler.cs
- ModifierKeysValueSerializer.cs
- Control.cs
- LineServicesCallbacks.cs
- EncoderNLS.cs
- DefaultValidator.cs
- Utils.cs
- TableRow.cs
- WindowsListView.cs
- EntityDataSourceSelectedEventArgs.cs
- CursorInteropHelper.cs
- Inflater.cs
- DocumentApplicationJournalEntry.cs
- HtmlElementEventArgs.cs
- BamlBinaryWriter.cs
- ChildTable.cs
- ControlBuilder.cs
- InputLanguageSource.cs
- BmpBitmapEncoder.cs
- RSAOAEPKeyExchangeFormatter.cs
- FontConverter.cs
- CollectionViewGroupInternal.cs
- StrokeCollection2.cs
- AutomationEventArgs.cs
- InvokeGenerator.cs
- UxThemeWrapper.cs
- DllHostedComPlusServiceHost.cs
- DesignColumn.cs
- remotingproxy.cs
- Line.cs
- QilTargetType.cs
- ShaperBuffers.cs
- SatelliteContractVersionAttribute.cs
- FormatterServices.cs
- PTProvider.cs
- SByteStorage.cs
- IdentifierCreationService.cs
- DependencyObjectProvider.cs
- DesignerCalendarAdapter.cs