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
- IList.cs
- PersonalizableAttribute.cs
- QuaternionIndependentAnimationStorage.cs
- ImageIndexConverter.cs
- OleStrCAMarshaler.cs
- ColumnHeaderConverter.cs
- UIPermission.cs
- WorkerRequest.cs
- BinaryParser.cs
- AutoGeneratedField.cs
- ToolStripDropDownClosedEventArgs.cs
- CookieProtection.cs
- ColorTransform.cs
- CodeEventReferenceExpression.cs
- Axis.cs
- ComponentResourceKey.cs
- ColorAnimationUsingKeyFrames.cs
- Stroke2.cs
- NavigationService.cs
- JoinTreeNode.cs
- TemplateModeChangedEventArgs.cs
- Vector3D.cs
- DataGridViewCellEventArgs.cs
- PathGeometry.cs
- EditCommandColumn.cs
- NetworkAddressChange.cs
- MediaContextNotificationWindow.cs
- DesignerLoader.cs
- EventWaitHandleSecurity.cs
- ThrowHelper.cs
- _ConnectStream.cs
- AttributeCollection.cs
- ErrorsHelper.cs
- SortQueryOperator.cs
- BulletedListEventArgs.cs
- MediaElement.cs
- Metafile.cs
- JobInputBins.cs
- SiteMapNodeItemEventArgs.cs
- ClientBuildManagerCallback.cs
- PropertyNames.cs
- ConfigXmlWhitespace.cs
- WebPartManagerInternals.cs
- SqlAliaser.cs
- ServerType.cs
- SpeechRecognitionEngine.cs
- TextInfo.cs
- StaticTextPointer.cs
- Trace.cs
- TransactionFlowAttribute.cs
- WeakKeyDictionary.cs
- ToolStripManager.cs
- ConnectionStringEditor.cs
- TablePattern.cs
- OutputCacheSettingsSection.cs
- FormatterServices.cs
- DesignTimeParseData.cs
- FormViewInsertedEventArgs.cs
- ObjectStateManagerMetadata.cs
- Memoizer.cs
- ConfigsHelper.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- NameTable.cs
- DbgUtil.cs
- ConfigurationSectionGroupCollection.cs
- TextAction.cs
- PackageProperties.cs
- GeneralTransform3D.cs
- HandlerFactoryWrapper.cs
- AttachmentService.cs
- SelectedGridItemChangedEvent.cs
- Block.cs
- Int64KeyFrameCollection.cs
- FigureParagraph.cs
- CaseStatement.cs
- SQLMembershipProvider.cs
- ServiceContractGenerationContext.cs
- HashRepartitionEnumerator.cs
- CopyAttributesAction.cs
- AdCreatedEventArgs.cs
- SoapAttributeAttribute.cs
- WebControlToolBoxItem.cs
- PageContentAsyncResult.cs
- SafeMILHandle.cs
- ObjectResult.cs
- LassoHelper.cs
- DoWhile.cs
- RequestBringIntoViewEventArgs.cs
- LOSFormatter.cs
- UserValidatedEventArgs.cs
- unsafenativemethodstextservices.cs
- PropertyChangingEventArgs.cs
- IdentitySection.cs
- TextParentUndoUnit.cs
- EntityContainer.cs
- ParseChildrenAsPropertiesAttribute.cs
- HtmlControlPersistable.cs
- StreamMarshaler.cs
- EventBuilder.cs
- AmbiguousMatchException.cs