Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WF / Activities / StateMachineWorkflow.cs / 1305376 / StateMachineWorkflow.cs
namespace System.Workflow.Activities { using System; using System.Xml.Serialization; using System.ComponentModel; using System.ComponentModel.Design; using System.Collections; using System.Collections.Generic; using System.Drawing; using System.Drawing.Design; using System.Reflection; using System.Workflow.ComponentModel; using System.Workflow.ComponentModel.Design; using System.ComponentModel.Design.Serialization; using System.Workflow.ComponentModel.Compiler; [SRDescription(SR.StateMachineWorkflowActivityDescription)] [Designer(typeof(StateMachineWorkflowDesigner), typeof(IRootDesigner))] [Designer(typeof(StateMachineWorkflowDesigner), typeof(IDesigner))] [ToolboxItem(false)] [ToolboxBitmap(typeof(StateMachineWorkflowActivity), "Resources.StateMachineWorkflowActivity.png")] [ActivityValidator(typeof(StateActivityValidator))] [SRCategory(SR.Standard)] [SRDisplayName(SR.StateMachineWorkflow)] [System.Runtime.InteropServices.ComVisible(false)] public class StateMachineWorkflowActivity : StateActivity { internal const string InitialStateNamePropertyName = "InitialStateName"; internal const string CompletedStateNamePropertyName = "CompletedStateName"; public const string SetStateQueueName = "SetStateQueue"; //metadata properties public static readonly DependencyProperty InitialStateNameProperty = DependencyProperty.Register(StateMachineWorkflowActivity.InitialStateNamePropertyName, typeof(string), typeof(StateMachineWorkflowActivity), new PropertyMetadata(DependencyPropertyOptions.Metadata)); public static readonly DependencyProperty CompletedStateNameProperty = DependencyProperty.Register(StateMachineWorkflowActivity.CompletedStateNamePropertyName, typeof(string), typeof(StateMachineWorkflowActivity), new PropertyMetadata(DependencyPropertyOptions.Metadata)); public StateMachineWorkflowActivity() { } public StateMachineWorkflowActivity(string name) : base(name) { } [SRDescription(SR.DynamicUpdateConditionDescr)] [SRCategory(SR.Conditions)] public ActivityCondition DynamicUpdateCondition { get { return WorkflowChanges.GetCondition(this) as ActivityCondition; } set { WorkflowChanges.SetCondition(this, value); } } [ValidationOption(ValidationOption.Optional)] [SRDescription(SR.InitialStateDescription)] [Editor(typeof(StateDropDownEditor), typeof(UITypeEditor))] [DefaultValue("")] public string InitialStateName { get { return (string)base.GetValue(InitialStateNameProperty); } set { base.SetValue(InitialStateNameProperty, value); } } [SRDescription(SR.CompletedStateDescription)] [Editor(typeof(StateDropDownEditor), typeof(UITypeEditor))] [DefaultValue("")] public string CompletedStateName { get { return (string)base.GetValue(CompletedStateNameProperty); } set { base.SetValue(CompletedStateNameProperty, value); } } [Browsable(false)] [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] public string CurrentStateName { get { StateMachineExecutionState executionState = this.ExecutionState; if (executionState == null) return null; return executionState.CurrentStateName; } } [Browsable(false)] [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] public string PreviousStateName { get { StateMachineExecutionState executionState = this.ExecutionState; if (executionState == null) return null; return executionState.PreviousStateName; } } internal StateMachineExecutionState ExecutionState { get { return (StateMachineExecutionState)base.GetValue(StateMachineExecutionStateProperty); } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. namespace System.Workflow.Activities { using System; using System.Xml.Serialization; using System.ComponentModel; using System.ComponentModel.Design; using System.Collections; using System.Collections.Generic; using System.Drawing; using System.Drawing.Design; using System.Reflection; using System.Workflow.ComponentModel; using System.Workflow.ComponentModel.Design; using System.ComponentModel.Design.Serialization; using System.Workflow.ComponentModel.Compiler; [SRDescription(SR.StateMachineWorkflowActivityDescription)] [Designer(typeof(StateMachineWorkflowDesigner), typeof(IRootDesigner))] [Designer(typeof(StateMachineWorkflowDesigner), typeof(IDesigner))] [ToolboxItem(false)] [ToolboxBitmap(typeof(StateMachineWorkflowActivity), "Resources.StateMachineWorkflowActivity.png")] [ActivityValidator(typeof(StateActivityValidator))] [SRCategory(SR.Standard)] [SRDisplayName(SR.StateMachineWorkflow)] [System.Runtime.InteropServices.ComVisible(false)] public class StateMachineWorkflowActivity : StateActivity { internal const string InitialStateNamePropertyName = "InitialStateName"; internal const string CompletedStateNamePropertyName = "CompletedStateName"; public const string SetStateQueueName = "SetStateQueue"; //metadata properties public static readonly DependencyProperty InitialStateNameProperty = DependencyProperty.Register(StateMachineWorkflowActivity.InitialStateNamePropertyName, typeof(string), typeof(StateMachineWorkflowActivity), new PropertyMetadata(DependencyPropertyOptions.Metadata)); public static readonly DependencyProperty CompletedStateNameProperty = DependencyProperty.Register(StateMachineWorkflowActivity.CompletedStateNamePropertyName, typeof(string), typeof(StateMachineWorkflowActivity), new PropertyMetadata(DependencyPropertyOptions.Metadata)); public StateMachineWorkflowActivity() { } public StateMachineWorkflowActivity(string name) : base(name) { } [SRDescription(SR.DynamicUpdateConditionDescr)] [SRCategory(SR.Conditions)] public ActivityCondition DynamicUpdateCondition { get { return WorkflowChanges.GetCondition(this) as ActivityCondition; } set { WorkflowChanges.SetCondition(this, value); } } [ValidationOption(ValidationOption.Optional)] [SRDescription(SR.InitialStateDescription)] [Editor(typeof(StateDropDownEditor), typeof(UITypeEditor))] [DefaultValue("")] public string InitialStateName { get { return (string)base.GetValue(InitialStateNameProperty); } set { base.SetValue(InitialStateNameProperty, value); } } [SRDescription(SR.CompletedStateDescription)] [Editor(typeof(StateDropDownEditor), typeof(UITypeEditor))] [DefaultValue("")] public string CompletedStateName { get { return (string)base.GetValue(CompletedStateNameProperty); } set { base.SetValue(CompletedStateNameProperty, value); } } [Browsable(false)] [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] public string CurrentStateName { get { StateMachineExecutionState executionState = this.ExecutionState; if (executionState == null) return null; return executionState.CurrentStateName; } } [Browsable(false)] [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] public string PreviousStateName { get { StateMachineExecutionState executionState = this.ExecutionState; if (executionState == null) return null; return executionState.PreviousStateName; } } internal StateMachineExecutionState ExecutionState { get { return (StateMachineExecutionState)base.GetValue(StateMachineExecutionStateProperty); } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- _ListenerAsyncResult.cs
- DataGridViewBindingCompleteEventArgs.cs
- TableLayoutColumnStyleCollection.cs
- UntrustedRecipientException.cs
- HtmlEmptyTagControlBuilder.cs
- PropertyEmitterBase.cs
- Drawing.cs
- Selector.cs
- EventManager.cs
- safelink.cs
- TextStore.cs
- FrameworkEventSource.cs
- ChannelServices.cs
- CompressedStack.cs
- MutexSecurity.cs
- RulePatternOps.cs
- CodeGenerationManager.cs
- CAGDesigner.cs
- FileLoadException.cs
- PassportAuthenticationModule.cs
- CalendarAutoFormat.cs
- Expander.cs
- ComponentDispatcher.cs
- FontInfo.cs
- CompoundFileDeflateTransform.cs
- UriGenerator.cs
- XmlSchemaAnyAttribute.cs
- ShowExpandedMultiValueConverter.cs
- Matrix.cs
- ReflectEventDescriptor.cs
- RayHitTestParameters.cs
- TokenBasedSetEnumerator.cs
- X509ChainPolicy.cs
- InitializerFacet.cs
- DataGridViewTextBoxCell.cs
- BinaryReader.cs
- HandleCollector.cs
- AnnotationComponentManager.cs
- BitmapEffectState.cs
- CLSCompliantAttribute.cs
- DataObjectAttribute.cs
- CodeCatchClause.cs
- ItemDragEvent.cs
- XmlAnyElementAttribute.cs
- ValidationEventArgs.cs
- RelOps.cs
- JumpPath.cs
- AnnotationResourceCollection.cs
- SchemaRegistration.cs
- CompressionTransform.cs
- Validator.cs
- HwndSource.cs
- OperationDescriptionCollection.cs
- SHA512Managed.cs
- SequentialOutput.cs
- HttpWebResponse.cs
- TabRenderer.cs
- SetIndexBinder.cs
- EditorAttribute.cs
- PasswordDeriveBytes.cs
- HitTestParameters.cs
- DynamicDataRouteHandler.cs
- CatalogZone.cs
- MetadataCache.cs
- PagedDataSource.cs
- XmlQueryOutput.cs
- DataRecord.cs
- ProtocolViolationException.cs
- CounterCreationData.cs
- StsCommunicationException.cs
- AuthenticationManager.cs
- RNGCryptoServiceProvider.cs
- VSWCFServiceContractGenerator.cs
- ItemCollection.cs
- Int32CAMarshaler.cs
- SmtpCommands.cs
- TreeNodeBindingCollection.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- ValueOfAction.cs
- IdentityHolder.cs
- MetadataItemEmitter.cs
- Header.cs
- EllipseGeometry.cs
- ToolStripProgressBar.cs
- FlowPosition.cs
- HttpHandlersSection.cs
- ValidationResult.cs
- Literal.cs
- FlowDocumentView.cs
- DynamicEntity.cs
- BulletedList.cs
- DeflateEmulationStream.cs
- SQLDouble.cs
- IFormattable.cs
- TdsParameterSetter.cs
- Shared.cs
- FileDetails.cs
- filewebrequest.cs
- CapacityStreamGeometryContext.cs
- Literal.cs