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
- SoapFault.cs
- DbDataRecord.cs
- AdRotatorDesigner.cs
- StdValidatorsAndConverters.cs
- KeyboardEventArgs.cs
- StylusCaptureWithinProperty.cs
- AsymmetricKeyExchangeFormatter.cs
- XmlValidatingReader.cs
- basevalidator.cs
- PathFigure.cs
- xdrvalidator.cs
- StrongNameUtility.cs
- XmlSchemas.cs
- CorePropertiesFilter.cs
- ClientSettingsStore.cs
- CompilerParameters.cs
- FixedSOMTable.cs
- AdRotator.cs
- CompoundFileStorageReference.cs
- DatatypeImplementation.cs
- InvalidProgramException.cs
- WebEventCodes.cs
- HttpCookieCollection.cs
- XmlStreamStore.cs
- SystemMulticastIPAddressInformation.cs
- UnsafeNativeMethodsTablet.cs
- Helpers.cs
- XmlDataSourceView.cs
- AQNBuilder.cs
- XamlRtfConverter.cs
- UInt16Storage.cs
- EventListenerClientSide.cs
- WSTrustDec2005.cs
- InertiaRotationBehavior.cs
- HtmlAnchor.cs
- TraceXPathNavigator.cs
- HtmlTernaryTree.cs
- DataGridViewButtonColumn.cs
- ReadOnlyNameValueCollection.cs
- WinInetCache.cs
- Tuple.cs
- FontFamily.cs
- JsonFormatReaderGenerator.cs
- InternalBase.cs
- AdCreatedEventArgs.cs
- AsyncOperationManager.cs
- RegexStringValidator.cs
- StorageMappingFragment.cs
- ZipIOBlockManager.cs
- PrefixQName.cs
- StickyNoteContentControl.cs
- SerializationSectionGroup.cs
- RuntimeEnvironment.cs
- Label.cs
- DispatchChannelSink.cs
- XamlFilter.cs
- BamlStream.cs
- XmlNamespaceMappingCollection.cs
- relpropertyhelper.cs
- CssTextWriter.cs
- DataGridViewColumnEventArgs.cs
- RepeatButton.cs
- Panel.cs
- FixedBufferAttribute.cs
- Substitution.cs
- HwndTarget.cs
- DataGridColumnsPage.cs
- RegexReplacement.cs
- MultiView.cs
- ParseNumbers.cs
- DbProviderServices.cs
- CapabilitiesPattern.cs
- ZoneMembershipCondition.cs
- PrinterUnitConvert.cs
- SqlInfoMessageEvent.cs
- BoundPropertyEntry.cs
- FrameworkElement.cs
- MouseActionConverter.cs
- XmlReflectionMember.cs
- WsdlInspector.cs
- DataObjectAttribute.cs
- ConnectionStringEditor.cs
- XmlSchemaSequence.cs
- DPAPIProtectedConfigurationProvider.cs
- CompoundFileIOPermission.cs
- XmlDocumentFragment.cs
- InitializerFacet.cs
- PathFigureCollection.cs
- TreeChangeInfo.cs
- StringConverter.cs
- TextBox.cs
- ActivityScheduledQuery.cs
- WebPartDisplayModeCancelEventArgs.cs
- OleDbFactory.cs
- EpmSyndicationContentSerializer.cs
- DocumentCollection.cs
- QilLiteral.cs
- DeviceFilterDictionary.cs
- WebBrowserProgressChangedEventHandler.cs
- IfElseDesigner.xaml.cs