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
- SourceCollection.cs
- ForeignKeyConstraint.cs
- BStrWrapper.cs
- FilterQuery.cs
- PrimitiveXmlSerializers.cs
- SchemaManager.cs
- FlowLayoutPanel.cs
- Deserializer.cs
- RegexCapture.cs
- InputBinder.cs
- RemotingSurrogateSelector.cs
- IndexOutOfRangeException.cs
- TablePatternIdentifiers.cs
- XamlGridLengthSerializer.cs
- ToolStripEditorManager.cs
- HttpModule.cs
- PassportAuthenticationModule.cs
- Visual3D.cs
- FolderBrowserDialog.cs
- XslNumber.cs
- CodeDomConfigurationHandler.cs
- DelegateSerializationHolder.cs
- Visual3D.cs
- Camera.cs
- CheckBoxFlatAdapter.cs
- HttpListenerRequest.cs
- Point3DCollectionConverter.cs
- MatchingStyle.cs
- ReferenceConverter.cs
- InsufficientMemoryException.cs
- SoapClientMessage.cs
- ViewKeyConstraint.cs
- SpotLight.cs
- DataProtection.cs
- StringFreezingAttribute.cs
- ExtendedPropertyDescriptor.cs
- SplitterEvent.cs
- Stroke2.cs
- BuildManager.cs
- XmlDictionaryReader.cs
- EnumValAlphaComparer.cs
- TemplatePartAttribute.cs
- SpecularMaterial.cs
- AuthorizationSection.cs
- StdValidatorsAndConverters.cs
- HttpStreams.cs
- regiisutil.cs
- WorkItem.cs
- ExceptionValidationRule.cs
- DataGridCellsPresenter.cs
- BaseInfoTable.cs
- XmlChoiceIdentifierAttribute.cs
- SqlVisitor.cs
- ContentPlaceHolder.cs
- SamlDelegatingWriter.cs
- NamedPipeTransportSecurity.cs
- XmlBinaryWriterSession.cs
- PasswordPropertyTextAttribute.cs
- MessageAction.cs
- DataContractSerializerFaultFormatter.cs
- ColorMatrix.cs
- BindableAttribute.cs
- MimeMapping.cs
- ResourceFallbackManager.cs
- PropertyChangedEventManager.cs
- Geometry3D.cs
- NotCondition.cs
- TransformerInfoCollection.cs
- BufferedWebEventProvider.cs
- ParserExtension.cs
- BrowsableAttribute.cs
- ISAPIRuntime.cs
- ResXBuildProvider.cs
- Decimal.cs
- FunctionQuery.cs
- KoreanCalendar.cs
- BmpBitmapEncoder.cs
- EmbossBitmapEffect.cs
- BitStream.cs
- GorillaCodec.cs
- MethodAccessException.cs
- ScaleTransform3D.cs
- TimeZone.cs
- CompilerParameters.cs
- NaturalLanguageHyphenator.cs
- ToolStripItemEventArgs.cs
- MetadataPropertyCollection.cs
- WorkflowInstanceExtensionManager.cs
- DataGridViewTextBoxEditingControl.cs
- InternalBufferManager.cs
- ToolStripRenderEventArgs.cs
- XmlAnyElementAttribute.cs
- webeventbuffer.cs
- HelpFileFileNameEditor.cs
- DWriteFactory.cs
- TrackingLocation.cs
- TextProviderWrapper.cs
- ToolStripItemGlyph.cs
- OrderedDictionary.cs
- ThemeInfoAttribute.cs