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
- SafeThemeHandle.cs
- BreakRecordTable.cs
- GroupStyle.cs
- BmpBitmapDecoder.cs
- StylusCollection.cs
- ExceptionUtil.cs
- FilterQueryOptionExpression.cs
- ClientProxyGenerator.cs
- PrintDialog.cs
- MatcherBuilder.cs
- MimeBasePart.cs
- SqlTypeSystemProvider.cs
- DocumentXmlWriter.cs
- XmlSubtreeReader.cs
- ObjectDataSourceStatusEventArgs.cs
- TextRangeEdit.cs
- Parser.cs
- DataError.cs
- ResourceIDHelper.cs
- ConnectionsZoneDesigner.cs
- ProtocolsConfigurationEntry.cs
- Mutex.cs
- Random.cs
- FontStyle.cs
- XmlSerializerNamespaces.cs
- ProxyRpc.cs
- SubordinateTransaction.cs
- Baml2006ReaderContext.cs
- NamespaceList.cs
- NotConverter.cs
- DateRangeEvent.cs
- Material.cs
- DataColumnCollection.cs
- ScriptReferenceEventArgs.cs
- BodyGlyph.cs
- DispatcherSynchronizationContext.cs
- DocumentOrderQuery.cs
- ServiceHostingEnvironmentSection.cs
- Attributes.cs
- Point3DConverter.cs
- ModifiableIteratorCollection.cs
- _AuthenticationState.cs
- ListSourceHelper.cs
- Debug.cs
- FrugalMap.cs
- WrappedOptions.cs
- PointLight.cs
- ProxyWebPartManager.cs
- CodeGroup.cs
- ConstraintCollection.cs
- UiaCoreTypesApi.cs
- MissingMemberException.cs
- HitTestWithGeometryDrawingContextWalker.cs
- EventDriven.cs
- DynamicILGenerator.cs
- NonNullItemCollection.cs
- GPPOINT.cs
- NativeMethods.cs
- XmlNodeChangedEventManager.cs
- HttpFileCollection.cs
- ReadOnlyKeyedCollection.cs
- __Error.cs
- CapabilitiesUse.cs
- AutomationPropertyInfo.cs
- RequestDescription.cs
- HttpResponseHeader.cs
- AutomationElement.cs
- UIElement3D.cs
- TickBar.cs
- RectAnimationClockResource.cs
- ClientApiGenerator.cs
- _NegoState.cs
- CompilerScopeManager.cs
- WindowsGraphics.cs
- MailDefinition.cs
- PageCodeDomTreeGenerator.cs
- HostedController.cs
- InfoCardSymmetricCrypto.cs
- ListViewDeletedEventArgs.cs
- _NegoState.cs
- DateTimeFormat.cs
- AddInControllerImpl.cs
- Variable.cs
- SoapAttributeAttribute.cs
- Subtree.cs
- TcpProcessProtocolHandler.cs
- IdnMapping.cs
- ObjectCacheSettings.cs
- UInt16Storage.cs
- PrintingPermissionAttribute.cs
- PropertyItem.cs
- RemotingServices.cs
- HwndSource.cs
- CodeLabeledStatement.cs
- RowToFieldTransformer.cs
- Condition.cs
- ProxyHelper.cs
- TypeSource.cs
- SQLDecimalStorage.cs
- CmsUtils.cs