Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WF / Activities / Schedule.cs / 1305376 / Schedule.cs
namespace System.Workflow.Activities
{
using System;
using System.IO;
using System.Xml;
using System.Text;
using System.Drawing;
using System.Windows.Forms;
using System.Collections;
using System.Collections.Specialized;
using System.Collections.Generic;
using System.CodeDom;
using System.CodeDom.Compiler;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.ComponentModel.Design.Serialization;
using System.Workflow.ComponentModel;
using System.Workflow.ComponentModel.Design;
using System.Workflow.ComponentModel.Compiler;
using System.Drawing.Design;
#region Class SequentialWorkflow
[Designer(typeof(SequentialWorkflowDesigner), typeof(IRootDesigner))]
[Designer(typeof(SequentialWorkflowDesigner), typeof(IDesigner))]
[ToolboxBitmap(typeof(SequentialWorkflowActivity), "Resources.SequentialWorkflow.bmp")]
[SRCategory(SR.Standard)]
[SRDisplayName(SR.SequentialWorkflow)]
[ToolboxItem(false)]
public class SequentialWorkflowActivity : SequenceActivity
{
#region Dependency Properties
public static readonly DependencyProperty InitializedEvent = DependencyProperty.Register("Initialized", typeof(EventHandler), typeof(SequentialWorkflowActivity));
public static readonly DependencyProperty CompletedEvent = DependencyProperty.Register("Completed", typeof(EventHandler), typeof(SequentialWorkflowActivity));
#endregion
#region Constructors
public SequentialWorkflowActivity()
{
}
public SequentialWorkflowActivity(string name)
:base(name)
{
}
[SRDescription(SR.DynamicUpdateConditionDescr)]
[SRCategory(SR.Conditions)]
[DefaultValue(null)]
public ActivityCondition DynamicUpdateCondition
{
get
{
return WorkflowChanges.GetCondition(this) as ActivityCondition;
}
set
{
WorkflowChanges.SetCondition(this, value);
}
}
#endregion
#region Handlers
[SRDescription(SR.OnInitializedDescr)]
[SRCategory(SR.Handlers)]
[MergableProperty(false)]
public event EventHandler Initialized
{
add
{
base.AddHandler(InitializedEvent, value);
}
remove
{
base.RemoveHandler(InitializedEvent, value);
}
}
[SRDescription(SR.OnCompletedDescr)]
[SRCategory(SR.Handlers)]
[MergableProperty(false)]
public event EventHandler Completed
{
add
{
base.AddHandler(CompletedEvent, value);
}
remove
{
base.RemoveHandler(CompletedEvent, value);
}
}
#endregion
#region Protected Implementations
protected override ActivityExecutionStatus Execute(ActivityExecutionContext executionContext)
{
if (executionContext == null)
throw new ArgumentNullException("executionContext");
base.RaiseEvent(SequentialWorkflowActivity.InitializedEvent, this, EventArgs.Empty);
return base.Execute(executionContext);
}
protected override sealed void OnSequenceComplete(ActivityExecutionContext executionContext)
{
if (executionContext == null)
throw new ArgumentNullException("executionContext");
base.RaiseEvent(SequentialWorkflowActivity.CompletedEvent, this, EventArgs.Empty);
}
#endregion
}
#endregion
}
// 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
- WsatExtendedInformation.cs
- WebProxyScriptElement.cs
- MetadataUtilsSmi.cs
- RightsManagementPermission.cs
- MessageEncoder.cs
- xamlnodes.cs
- ColumnCollection.cs
- ProtocolsSection.cs
- SourceElementsCollection.cs
- DbMetaDataCollectionNames.cs
- EdmItemCollection.OcAssemblyCache.cs
- MissingFieldException.cs
- TextServicesCompartmentContext.cs
- ErrorEventArgs.cs
- NegationPusher.cs
- PrimitiveXmlSerializers.cs
- baseaxisquery.cs
- ToolboxComponentsCreatedEventArgs.cs
- QilExpression.cs
- RoleManagerModule.cs
- SimpleHandlerBuildProvider.cs
- ErrorRuntimeConfig.cs
- SystemWebSectionGroup.cs
- XmlSchemaExporter.cs
- GeometryDrawing.cs
- FontInfo.cs
- XmlWriterSettings.cs
- SqlDataRecord.cs
- ThreadStartException.cs
- PrimaryKeyTypeConverter.cs
- TextBox.cs
- BitConverter.cs
- JobCollate.cs
- ModuleElement.cs
- PrimaryKeyTypeConverter.cs
- SqlDataAdapter.cs
- HttpStreamXmlDictionaryReader.cs
- VisualStates.cs
- SettingsPropertyWrongTypeException.cs
- SchemaCollectionPreprocessor.cs
- StreamInfo.cs
- ValidatingReaderNodeData.cs
- ValidatingPropertiesEventArgs.cs
- ResourcesBuildProvider.cs
- OdbcEnvironmentHandle.cs
- BitmapFrame.cs
- SetIterators.cs
- ProxyWebPartConnectionCollection.cs
- ObjectItemCachedAssemblyLoader.cs
- ShadowGlyph.cs
- HttpHandlersSection.cs
- DummyDataSource.cs
- ObjectParameter.cs
- DbException.cs
- GroupItem.cs
- TakeQueryOptionExpression.cs
- GenericTextProperties.cs
- XNodeNavigator.cs
- ClientTargetSection.cs
- FixedTextContainer.cs
- SpinLock.cs
- InstanceValue.cs
- SafePointer.cs
- PerspectiveCamera.cs
- XmlDataImplementation.cs
- FileLogRecord.cs
- UnsafeNativeMethodsPenimc.cs
- ProgramNode.cs
- SQLInt16.cs
- X509CertificateChain.cs
- XmlTypeMapping.cs
- BufferedGraphicsManager.cs
- DragEvent.cs
- PrivilegedConfigurationManager.cs
- DbUpdateCommandTree.cs
- DbParameterCollectionHelper.cs
- ConfigurationElement.cs
- GrammarBuilder.cs
- CombinedGeometry.cs
- ObjectDataSourceStatusEventArgs.cs
- PresentationUIStyleResources.cs
- ObjectAssociationEndMapping.cs
- ControlBindingsCollection.cs
- ScrollableControl.cs
- Html32TextWriter.cs
- ClientTarget.cs
- DataViewSettingCollection.cs
- WorkflowInlining.cs
- RTTrackingProfile.cs
- CodeDirectiveCollection.cs
- ProcessHostMapPath.cs
- AttributeUsageAttribute.cs
- NextPreviousPagerField.cs
- KeyedCollection.cs
- GlyphRunDrawing.cs
- DrawingAttributesDefaultValueFactory.cs
- MemberProjectedSlot.cs
- SqlParameter.cs
- SchemaComplexType.cs
- ArrayHelper.cs