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
- Range.cs
- CompiledQueryCacheKey.cs
- XamlReader.cs
- CollectionViewGroupInternal.cs
- D3DImage.cs
- XamlReader.cs
- BooleanFacetDescriptionElement.cs
- NumericUpDownAccelerationCollection.cs
- SponsorHelper.cs
- FormsAuthenticationUserCollection.cs
- DebugTracing.cs
- _LazyAsyncResult.cs
- BindingFormattingDialog.cs
- UndoEngine.cs
- XmlDocumentSerializer.cs
- Convert.cs
- ListDictionaryInternal.cs
- PrintPageEvent.cs
- GridPattern.cs
- RemoteCryptoSignHashRequest.cs
- ComponentResourceKey.cs
- BinHexDecoder.cs
- SignatureResourceHelper.cs
- ResizeGrip.cs
- Byte.cs
- ResolveNameEventArgs.cs
- HtmlInputReset.cs
- WorkflowExecutor.cs
- ReadOnlyKeyedCollection.cs
- MemoryStream.cs
- GeneralTransform.cs
- ItemsControl.cs
- ScrollProviderWrapper.cs
- MouseGestureValueSerializer.cs
- CommandBindingCollection.cs
- CodeThrowExceptionStatement.cs
- QilChoice.cs
- PriorityBinding.cs
- Blend.cs
- FamilyTypefaceCollection.cs
- XmlCharCheckingWriter.cs
- CheckBox.cs
- CopyNamespacesAction.cs
- DataGridToolTip.cs
- RequestQueue.cs
- CryptoStream.cs
- ImageDrawing.cs
- DesignerLoader.cs
- CompiledQueryCacheEntry.cs
- TransformerConfigurationWizardBase.cs
- DrawItemEvent.cs
- AuthenticationModuleElement.cs
- ConnectionInterfaceCollection.cs
- URLString.cs
- WindowCollection.cs
- GenericEnumerator.cs
- WindowsGraphics2.cs
- XmlnsPrefixAttribute.cs
- JsonWriter.cs
- SecureEnvironment.cs
- CultureTable.cs
- InstanceNotReadyException.cs
- HGlobalSafeHandle.cs
- BufferedGraphics.cs
- MatrixAnimationUsingKeyFrames.cs
- TransformGroup.cs
- NativeMethodsCLR.cs
- XMLUtil.cs
- WaitHandleCannotBeOpenedException.cs
- ObjectManager.cs
- HttpServerVarsCollection.cs
- Point3DKeyFrameCollection.cs
- XamlTemplateSerializer.cs
- QueuedDeliveryRequirementsMode.cs
- NonClientArea.cs
- DictionaryTraceRecord.cs
- ListItemCollection.cs
- ShaderEffect.cs
- NotCondition.cs
- HierarchicalDataBoundControlAdapter.cs
- DesignerCommandSet.cs
- Vector.cs
- WmpBitmapEncoder.cs
- GenericIdentity.cs
- EntityClientCacheEntry.cs
- Task.cs
- FormViewInsertedEventArgs.cs
- Point.cs
- MemberProjectionIndex.cs
- ContentFilePart.cs
- VisualBrush.cs
- LassoHelper.cs
- MD5CryptoServiceProvider.cs
- DesignerView.cs
- CorePropertiesFilter.cs
- Graphics.cs
- ParallelDesigner.xaml.cs
- XPathAncestorIterator.cs
- ReachBasicContext.cs
- GridItemPattern.cs