Code:
/ 4.0 / 4.0 / 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. 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
- Composition.cs
- TagNameToTypeMapper.cs
- SmtpTransport.cs
- PathFigure.cs
- SizeIndependentAnimationStorage.cs
- ApplicationDirectoryMembershipCondition.cs
- DropTarget.cs
- XmlSchemaObject.cs
- RadialGradientBrush.cs
- BitmapCacheBrush.cs
- SuspendDesigner.cs
- EmptyStringExpandableObjectConverter.cs
- DelegatingConfigHost.cs
- ParseChildrenAsPropertiesAttribute.cs
- EntityViewGenerator.cs
- COM2Properties.cs
- ListBox.cs
- SqlExpander.cs
- DataListItemEventArgs.cs
- ExternalFile.cs
- ZipIORawDataFileBlock.cs
- XmlElementCollection.cs
- AsymmetricKeyExchangeDeformatter.cs
- GeometryGroup.cs
- UrlMappingCollection.cs
- InkCanvasSelection.cs
- ProfileModule.cs
- RSAPKCS1KeyExchangeFormatter.cs
- DependencyProperty.cs
- PeerNameRecord.cs
- DbConnectionOptions.cs
- NotEqual.cs
- ListBindingConverter.cs
- SpellerError.cs
- CodeObjectCreateExpression.cs
- FlowDocumentScrollViewer.cs
- HashCodeCombiner.cs
- ProfileSettings.cs
- DBDataPermission.cs
- OneWayBindingElement.cs
- PropertyContainer.cs
- DependencyPropertyHelper.cs
- AnimationClockResource.cs
- BaseDataList.cs
- RequestStatusBarUpdateEventArgs.cs
- BaseDataList.cs
- WebBrowserPermission.cs
- GeneralTransform3DTo2DTo3D.cs
- MimeBasePart.cs
- MsmqHostedTransportConfiguration.cs
- SimpleWorkerRequest.cs
- ProgressBarAutomationPeer.cs
- DataGridViewCellMouseEventArgs.cs
- DbConnectionPoolCounters.cs
- ProviderBase.cs
- ArithmeticException.cs
- IntPtr.cs
- AssertSection.cs
- SafeNativeMethods.cs
- RegexWriter.cs
- ProfileEventArgs.cs
- WebPartZone.cs
- EventDescriptorCollection.cs
- CaseInsensitiveHashCodeProvider.cs
- EntityContainerRelationshipSet.cs
- PeerHopCountAttribute.cs
- ToolStripStatusLabel.cs
- DataAdapter.cs
- AssociationSet.cs
- ThreadSafeMessageFilterTable.cs
- AddInDeploymentState.cs
- InputLanguageEventArgs.cs
- JsonMessageEncoderFactory.cs
- Axis.cs
- FileSystemWatcher.cs
- HtmlAnchor.cs
- PrintEvent.cs
- XmlNamespaceManager.cs
- TrackingConditionCollection.cs
- IgnoreFlushAndCloseStream.cs
- DependencyPropertyValueSerializer.cs
- PropertyCollection.cs
- CustomWebEventKey.cs
- AnnotationService.cs
- SessionSwitchEventArgs.cs
- FolderBrowserDialog.cs
- TableParaClient.cs
- DatagridviewDisplayedBandsData.cs
- BinaryReader.cs
- PreviewPrintController.cs
- JoinSymbol.cs
- RegexRunner.cs
- ProfileManager.cs
- Cursor.cs
- ValueTypeFixupInfo.cs
- ZipFileInfoCollection.cs
- HttpFileCollection.cs
- DbFunctionCommandTree.cs
- Subtree.cs
- ProxyWebPartManager.cs