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
- IgnoreFileBuildProvider.cs
- HtmlInputRadioButton.cs
- Camera.cs
- TypeUnloadedException.cs
- WebFaultClientMessageInspector.cs
- ProcessHostMapPath.cs
- GridViewCommandEventArgs.cs
- Typography.cs
- ImageListStreamer.cs
- ResourceIDHelper.cs
- WebPartHeaderCloseVerb.cs
- DoWorkEventArgs.cs
- MimeTypeMapper.cs
- ServiceOperation.cs
- AppSecurityManager.cs
- BindingContext.cs
- CodePageEncoding.cs
- RsaKeyIdentifierClause.cs
- Menu.cs
- DesignerAttribute.cs
- Point.cs
- StorageInfo.cs
- MimeMapping.cs
- Filter.cs
- Win32Exception.cs
- ExpandButtonVisibilityConverter.cs
- InvalidFilterCriteriaException.cs
- BookmarkUndoUnit.cs
- XamlContextStack.cs
- RegexCompilationInfo.cs
- ResXDataNode.cs
- LocatorBase.cs
- XmlAutoDetectWriter.cs
- HttpListenerContext.cs
- TemplateControlBuildProvider.cs
- DataGridBoolColumn.cs
- ProviderCommandInfoUtils.cs
- UniqueEventHelper.cs
- StaticFileHandler.cs
- UnsettableComboBox.cs
- ValueProviderWrapper.cs
- DrawToolTipEventArgs.cs
- FixedNode.cs
- CrossContextChannel.cs
- MemberInitExpression.cs
- Certificate.cs
- DefaultPropertyAttribute.cs
- ProfileGroupSettings.cs
- TdsParserStateObject.cs
- XmlComment.cs
- HttpCapabilitiesBase.cs
- DayRenderEvent.cs
- DeclaredTypeElement.cs
- SafeNativeMethodsCLR.cs
- CaseStatement.cs
- Delegate.cs
- AxDesigner.cs
- XamlNamespaceHelper.cs
- PersianCalendar.cs
- CounterSample.cs
- ConnectionManagementSection.cs
- StateChangeEvent.cs
- HierarchicalDataBoundControl.cs
- CreateUserWizard.cs
- TimelineClockCollection.cs
- DetailsViewInsertedEventArgs.cs
- entityreference_tresulttype.cs
- SQLBoolean.cs
- IIS7UserPrincipal.cs
- EntryPointNotFoundException.cs
- DataViewManager.cs
- ToolboxComponentsCreatedEventArgs.cs
- SoapIncludeAttribute.cs
- HtmlInputImage.cs
- ToolBarButtonClickEvent.cs
- OSEnvironmentHelper.cs
- ActiveDocumentEvent.cs
- SystemIcmpV6Statistics.cs
- ContentFilePart.cs
- EmptyEnumerable.cs
- DataTableMapping.cs
- SiteIdentityPermission.cs
- FileLevelControlBuilderAttribute.cs
- InternalTypeHelper.cs
- ParsedAttributeCollection.cs
- ScriptResourceInfo.cs
- HttpApplicationStateBase.cs
- DynamicResourceExtensionConverter.cs
- ConfigurationStrings.cs
- CryptoProvider.cs
- ScriptIgnoreAttribute.cs
- ObsoleteAttribute.cs
- NetSectionGroup.cs
- IPCCacheManager.cs
- BaseValidator.cs
- StructuralType.cs
- WindowsFormsSectionHandler.cs
- GuidelineSet.cs
- GridViewSelectEventArgs.cs
- SqlTopReducer.cs