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
- XmlSchemaAny.cs
- Line.cs
- PasswordTextContainer.cs
- UIElementIsland.cs
- TrustExchangeException.cs
- XmlILModule.cs
- Assert.cs
- SchemaTypeEmitter.cs
- TextTreeTextNode.cs
- SystemColors.cs
- _IPv4Address.cs
- QilNode.cs
- DXD.cs
- Int32EqualityComparer.cs
- QilStrConcat.cs
- TrueReadOnlyCollection.cs
- XmlSerializationWriter.cs
- BuildProviderCollection.cs
- UTF32Encoding.cs
- WebConfigurationHost.cs
- WebHttpBindingCollectionElement.cs
- Size.cs
- UInt16Converter.cs
- DataGridViewColumnTypeEditor.cs
- FullTextBreakpoint.cs
- FigureParagraph.cs
- DocumentOrderComparer.cs
- Application.cs
- DriveInfo.cs
- SafeSystemMetrics.cs
- SystemDropShadowChrome.cs
- WebBrowserNavigatedEventHandler.cs
- AdapterDictionary.cs
- DeclarativeCatalogPart.cs
- XsdDataContractExporter.cs
- IdentitySection.cs
- ObjectParameterCollection.cs
- InstanceKeyCollisionException.cs
- ToolStripTextBox.cs
- StorageBasedPackageProperties.cs
- MdiWindowListStrip.cs
- PageParserFilter.cs
- Win32SafeHandles.cs
- ContentPropertyAttribute.cs
- XPathDocument.cs
- X509CertificateClaimSet.cs
- ApplicationId.cs
- GridProviderWrapper.cs
- GradientBrush.cs
- ExecutionScope.cs
- PingReply.cs
- CompressEmulationStream.cs
- CollectionBase.cs
- StringSource.cs
- RepeatButton.cs
- Column.cs
- TargetConverter.cs
- CodeSnippetCompileUnit.cs
- OdbcConnectionString.cs
- TreeNodeCollection.cs
- FactoryGenerator.cs
- TabletDeviceInfo.cs
- DesignerTransactionCloseEvent.cs
- _AutoWebProxyScriptHelper.cs
- Viewport2DVisual3D.cs
- RolePrincipal.cs
- HierarchicalDataSourceControl.cs
- Section.cs
- Propagator.cs
- BevelBitmapEffect.cs
- ContentIterators.cs
- DescriptionAttribute.cs
- DynamicObject.cs
- RadialGradientBrush.cs
- SqlNamer.cs
- CalloutQueueItem.cs
- SafeFileHandle.cs
- _SSPISessionCache.cs
- Partitioner.cs
- GridViewColumn.cs
- SaveFileDialog.cs
- ToolboxDataAttribute.cs
- AttributeUsageAttribute.cs
- AdornedElementPlaceholder.cs
- RenderContext.cs
- HttpCapabilitiesBase.cs
- XsdBuilder.cs
- AnimationLayer.cs
- DeobfuscatingStream.cs
- DropShadowBitmapEffect.cs
- FixedElement.cs
- TypeListConverter.cs
- QueryLifecycle.cs
- DistinctQueryOperator.cs
- CallbackHandler.cs
- DefaultSerializationProviderAttribute.cs
- CollectionDataContractAttribute.cs
- SpeechSynthesizer.cs
- Avt.cs
- DiscoveryClientDocuments.cs