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
- FunctionNode.cs
- SimpleWorkerRequest.cs
- Models.cs
- ServiceDescriptionImporter.cs
- Literal.cs
- ContentElement.cs
- XmlEventCache.cs
- Vector3DKeyFrameCollection.cs
- Int32Collection.cs
- AuthorizationRuleCollection.cs
- odbcmetadatafactory.cs
- SingleConverter.cs
- PresentationUIStyleResources.cs
- RoleGroupCollection.cs
- WebServiceClientProxyGenerator.cs
- MinMaxParagraphWidth.cs
- DrawListViewItemEventArgs.cs
- GlyphTypeface.cs
- DataDocumentXPathNavigator.cs
- WindowsListBox.cs
- PageAdapter.cs
- XmlToDatasetMap.cs
- MenuTracker.cs
- AnnotationResourceChangedEventArgs.cs
- ListChangedEventArgs.cs
- NavigationProgressEventArgs.cs
- CalendarModeChangedEventArgs.cs
- MetadataAssemblyHelper.cs
- StylusEventArgs.cs
- PropertyDescriptor.cs
- GenericRootAutomationPeer.cs
- ProxyManager.cs
- SafeNativeMethods.cs
- AppSettingsExpressionBuilder.cs
- SHA1Managed.cs
- WindowsListViewGroupHelper.cs
- SessionState.cs
- KeyValuePairs.cs
- TreeNode.cs
- ContentIterators.cs
- CompilerGlobalScopeAttribute.cs
- DeferredTextReference.cs
- ReadWriteControlDesigner.cs
- UnionCqlBlock.cs
- CompilerHelpers.cs
- DataGridViewImageCell.cs
- DbProviderFactory.cs
- ManagedWndProcTracker.cs
- Switch.cs
- MachineKeySection.cs
- BaseValidator.cs
- BinaryParser.cs
- RequestCachePolicy.cs
- WebServiceEnumData.cs
- Zone.cs
- KeyPressEvent.cs
- IUnknownConstantAttribute.cs
- BCryptHashAlgorithm.cs
- PointConverter.cs
- CodeExporter.cs
- RelationshipDetailsRow.cs
- MulticastDelegate.cs
- ClaimSet.cs
- SqlFlattener.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- CqlBlock.cs
- QueryableDataSource.cs
- AsyncPostBackTrigger.cs
- ExpressionPrefixAttribute.cs
- TdsValueSetter.cs
- NamespaceList.cs
- XmlSigningNodeWriter.cs
- DomainConstraint.cs
- StylusPointPropertyInfo.cs
- CodeLabeledStatement.cs
- Window.cs
- InkPresenterAutomationPeer.cs
- SoapExtensionTypeElementCollection.cs
- lengthconverter.cs
- SymbolUsageManager.cs
- FixedPageProcessor.cs
- FunctionMappingTranslator.cs
- SystemWebExtensionsSectionGroup.cs
- ParameterElement.cs
- Missing.cs
- XmlArrayAttribute.cs
- RequiredAttributeAttribute.cs
- smtppermission.cs
- ContextBase.cs
- HostSecurityManager.cs
- WebSysDefaultValueAttribute.cs
- FloaterParaClient.cs
- GacUtil.cs
- EventLogTraceListener.cs
- NamespaceCollection.cs
- TextSyndicationContentKindHelper.cs
- TextParagraph.cs
- CultureMapper.cs
- BaseParser.cs
- SqlBuffer.cs