• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# Activities.CodeCondition类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中System.Workflow.Activities.CodeCondition的典型用法代码示例。如果您正苦于以下问题:C# CodeCondition类的具体用法?C# CodeCondition怎么用?C# CodeCondition使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



CodeCondition类属于System.Workflow.Activities命名空间,在下文中一共展示了CodeCondition类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: WorkFlowIfElse

		public WorkFlowIfElse ()
		{
			IfElseActivity ifelse_activity = new IfElseActivity ();
			IfElseBranchActivity branch1 = new IfElseBranchActivity ();
			CodeCondition ifelse_condition1 = new CodeCondition ();
			DelayActivity delay_activity = new DelayActivity ();
			CodeActivity code_branch1 = new CodeActivity ();
			CodeActivity code_branch2 = new CodeActivity ();
			branch2 = new IfElseBranchActivity ();

			delay_activity.Name = "DelayActivity";
			delay_activity.TimeoutDuration = TimeSpan.Parse ("00:00:05");
			delay_activity.InitializeTimeoutDuration += new EventHandler (DelayActivity_InitializeTimeoutDuration);

			code_branch1.Name ="Code1";
			code_branch2.Name ="Code2";
			code_branch1.ExecuteCode += new EventHandler (ExecuteCode1);
			code_branch2.ExecuteCode += new EventHandler (ExecuteCode2);

			branch1.Activities.Add (code_branch1);
			branch2.Activities.Add (code_branch2);

			ifelse_condition1.Condition += new EventHandler <ConditionalEventArgs> (IfElseCondition1);
			branch1.Condition = ifelse_condition1;

			ifelse_activity.Activities.Add (branch1);
			ifelse_activity.Activities.Add (branch2);

			Activities.Add (delay_activity);
			Activities.Add (ifelse_activity);
		}
开发者ID:alesliehughes,项目名称:olive,代码行数:31,代码来源:SimpleWorkflow.cs


示例2: InitializeComponent

 private void InitializeComponent()
 {
     this.CanModifyActivities = true;
     System.Workflow.Activities.CodeCondition codecondition1 = new System.Workflow.Activities.CodeCondition();
     System.Workflow.Activities.CodeCondition codecondition2 = new System.Workflow.Activities.CodeCondition();
     this.Airline = new System.Workflow.Activities.CodeActivity();
     this.Car = new System.Workflow.Activities.CodeActivity();
     this.BookingCag = new System.Workflow.Activities.ConditionedActivityGroup();
     codecondition1.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.AirlineCondition);
     //
     // Airline
     //
     this.Airline.Name = "Airline";
     this.Airline.ExecuteCode += new System.EventHandler(this.Airline_ExecuteCode);
     this.Airline.SetValue(System.Workflow.Activities.ConditionedActivityGroup.WhenConditionProperty, codecondition1);
     codecondition2.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.CarCondition);
     //
     // Car
     //
     this.Car.Name = "Car";
     this.Car.ExecuteCode += new System.EventHandler(this.Car_ExecuteCode);
     this.Car.SetValue(System.Workflow.Activities.ConditionedActivityGroup.WhenConditionProperty, codecondition2);
     //
     // BookingCag
     //
     this.BookingCag.Activities.Add(this.Car);
     this.BookingCag.Activities.Add(this.Airline);
     this.BookingCag.Name = "BookingCag";
     //
     // SimpleConditionedActivityGroupWorkflow
     //
     this.Activities.Add(this.BookingCag);
     this.Name = "SimpleConditionedActivityGroupWorkflow";
     this.CanModifyActivities = false;
 }
开发者ID:tian1ll1,项目名称:WPF_Examples,代码行数:35,代码来源:simplecagworkflow.designer.cs


示例3: WorkFlowIfElse

		public WorkFlowIfElse ()
		{
			IfElseActivity ifelse_activity = new IfElseActivity ();
			IfElseBranchActivity branch1 = new IfElseBranchActivity ();
			CodeCondition ifelse_condition1 = new CodeCondition ();
			CodeActivity code_branch1 = new CodeActivity ();
			CodeActivity code_branch2 = new CodeActivity ();
			branch2 = new IfElseBranchActivity ();

			code_branch1.Name ="Code1";
			code_branch2.Name ="Code2";
			code_branch1.ExecuteCode += new EventHandler (ExecuteCode1);
			code_branch2.ExecuteCode += new EventHandler (ExecuteCode2);

			branch1.Activities.Add (code_branch1);
			branch2.Activities.Add (code_branch2);

			ifelse_condition1.Condition += new EventHandler <ConditionalEventArgs> (IfElseCondition1);
			branch1.Condition = ifelse_condition1;

			ifelse_activity.Activities.Add (branch1);
			ifelse_activity.Activities.Add (branch2);

			Activities.Add (ifelse_activity);
		}
开发者ID:alesliehughes,项目名称:olive,代码行数:25,代码来源:IfElseActivityTest.cs


示例4: InitializeComponent

        private void InitializeComponent()
        {
            this.CanModifyActivities = true;
            System.Workflow.Activities.CodeCondition codecondition1 = new System.Workflow.Activities.CodeCondition();
            System.Workflow.ComponentModel.ActivityBind activitybind1 = new System.Workflow.ComponentModel.ActivityBind();
            this.TraceWakeup = new System.Workflow.Activities.CodeActivity();
            this.Delay = new System.Workflow.Activities.DelayActivity();
            this.ConditionSatisfied = new System.Workflow.Activities.IfElseBranchActivity();
            this.IfActivityExecutionConditionSatisfied = new System.Workflow.Activities.IfElseActivity();
            this.Resolve = new MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.ComponentActivities.ResolveLookups();
            this.ParseExpressions = new System.Workflow.Activities.CodeActivity();
            // 
            // TraceWakeup
            // 
            this.TraceWakeup.Name = "TraceWakeup";
            this.TraceWakeup.ExecuteCode += new System.EventHandler(this.TraceWakeup_ExecuteCode);
            // 
            // Delay
            // 
            this.Delay.Name = "Delay";
            this.Delay.TimeoutDuration = System.TimeSpan.Parse("00:00:00");
            this.Delay.InitializeTimeoutDuration += new System.EventHandler(this.Delay_InitializeTimeoutDuration);
            // 
            // ConditionSatisfied
            // 
            this.ConditionSatisfied.Activities.Add(this.Delay);
            this.ConditionSatisfied.Activities.Add(this.TraceWakeup);
            codecondition1.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.ActivityExecutionConditionSatisfied_Condition);
            this.ConditionSatisfied.Condition = codecondition1;
            this.ConditionSatisfied.Name = "ConditionSatisfied";
            // 
            // IfActivityExecutionConditionSatisfied
            // 
            this.IfActivityExecutionConditionSatisfied.Activities.Add(this.ConditionSatisfied);
            this.IfActivityExecutionConditionSatisfied.Name = "IfActivityExecutionConditionSatisfied";
            // 
            // Resolve
            // 
            this.Resolve.ComparedRequestId = new System.Guid("00000000-0000-0000-0000-000000000000");
            activitybind1.Name = "AddDelay";
            activitybind1.Path = "ActivityExpressionEvaluator.LookupCache";
            this.Resolve.Name = "Resolve";
            this.Resolve.QueryResults = null;
            this.Resolve.Value = null;
            this.Resolve.SetBinding(MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.ComponentActivities.ResolveLookups.LookupsProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
            // 
            // ParseExpressions
            // 
            this.ParseExpressions.Name = "ParseExpressions";
            this.ParseExpressions.ExecuteCode += new System.EventHandler(this.ParseExpressions_ExecuteCode);
            // 
            // AddDelay
            // 
            this.Activities.Add(this.ParseExpressions);
            this.Activities.Add(this.Resolve);
            this.Activities.Add(this.IfActivityExecutionConditionSatisfied);
            this.Name = "AddDelay";
            this.CanModifyActivities = false;

        }
开发者ID:NileshGhodekar,项目名称:MIMWAL,代码行数:60,代码来源:AddDelay.Designer.cs


示例5: InitializeComponent

 private void InitializeComponent()
 {
     this.CanModifyActivities = true;
     System.Workflow.ComponentModel.ActivityBind activitybind1 = new System.Workflow.ComponentModel.ActivityBind();
     System.Workflow.ComponentModel.ActivityBind activitybind2 = new System.Workflow.ComponentModel.ActivityBind();
     System.Workflow.ComponentModel.ActivityBind activitybind3 = new System.Workflow.ComponentModel.ActivityBind();
     System.Workflow.Activities.CodeCondition codecondition1 = new System.Workflow.Activities.CodeCondition();
     this.completedTask = new System.Workflow.Activities.CodeActivity();
     this.taskApprovalActivity1 = new TVMCORP.TVS.WORKFLOWS.Activities.TaskApprovalActivity();
     this.initialData = new System.Workflow.Activities.CodeActivity();
     this.sequenceActivity1 = new System.Workflow.Activities.SequenceActivity();
     this.whileActivity1 = new System.Workflow.Activities.WhileActivity();
     //
     // completedTask
     //
     this.completedTask.Name = "completedTask";
     this.completedTask.ExecuteCode += new System.EventHandler(this.completedTask_ExecuteCode);
     //
     // taskApprovalActivity1
     //
     activitybind1.Name = "TaskApproval";
     activitybind1.Path = "TaskInfo";
     this.taskApprovalActivity1.Name = "taskApprovalActivity1";
     activitybind2.Name = "TaskApproval";
     activitybind2.Path = "Parameter";
     activitybind3.Name = "TaskApproval";
     activitybind3.Path = "WorkflowProperties";
     this.taskApprovalActivity1.SetBinding(TVMCORP.TVS.WORKFLOWS.Activities.TaskApprovalActivity.ParameterProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind2)));
     this.taskApprovalActivity1.SetBinding(TVMCORP.TVS.WORKFLOWS.Activities.TaskApprovalActivity.ApprovalInfoTaskProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
     this.taskApprovalActivity1.SetBinding(TVMCORP.TVS.WORKFLOWS.Activities.TaskApprovalActivity.WorkflowPropertiesProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind3)));
     //
     // initialData
     //
     this.initialData.Name = "initialData";
     this.initialData.ExecuteCode += new System.EventHandler(this.initialData_ExecuteCode);
     //
     // sequenceActivity1
     //
     this.sequenceActivity1.Activities.Add(this.initialData);
     this.sequenceActivity1.Activities.Add(this.taskApprovalActivity1);
     this.sequenceActivity1.Activities.Add(this.completedTask);
     this.sequenceActivity1.Name = "sequenceActivity1";
     //
     // whileActivity1
     //
     this.whileActivity1.Activities.Add(this.sequenceActivity1);
     codecondition1.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.havePreviousTask);
     this.whileActivity1.Condition = codecondition1;
     this.whileActivity1.Name = "whileActivity1";
     //
     // TaskApproval
     //
     this.Activities.Add(this.whileActivity1);
     this.Name = "TaskApproval";
     this.CanModifyActivities = false;
 }
开发者ID:chutinhha,项目名称:tvmcorptvs,代码行数:56,代码来源:TaskApproval.designer.cs


示例6: InitializeComponent

 public void InitializeComponent()
 {
     this.CanModifyActivities = true;
     System.Workflow.Activities.CodeCondition codecondition1 = new System.Workflow.Activities.CodeCondition();
     this.PORequest = new System.Workflow.Activities.CodeActivity();
     this.CreditCheckDelay = new System.Workflow.Activities.DelayActivity();
     this.CheckApproval = new System.Workflow.Activities.IfElseActivity();
     this.POCreated = new System.Workflow.Activities.CodeActivity();
     this.Approved = new System.Workflow.Activities.IfElseBranchActivity();
     this.AddApprovalStep = new System.Workflow.Activities.CodeActivity();
     // 
     // PORequest
     // 
     this.PORequest.Name = "PORequest";
     this.PORequest.ExecuteCode += new System.EventHandler(this.OnPORequest);
     // 
     // CreditCheckDelay
     // 
     this.CreditCheckDelay.Name = "CreditCheckDelay";
     this.CreditCheckDelay.TimeoutDuration = System.TimeSpan.Parse("00:00:02");
     this.CreditCheckDelay.InitializeTimeoutDuration += new System.EventHandler(this.OnCreditCheckDelay);
     // 
     // CheckApproval
     // 
     this.CheckApproval.Activities.Add(this.Approved);
     this.CheckApproval.Name = "CheckApproval";
     // 
     // POCreated
     // 
     this.POCreated.Name = "POCreated";
     this.POCreated.ExecuteCode += new System.EventHandler(this.OnPOCreated);
     // 
     // Approved
     // 
     this.Approved.Activities.Add(this.AddApprovalStep);
     codecondition1.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.AddApprovalStepCondition);
     this.Approved.Condition = codecondition1;
     this.Approved.Name = "Approved";
     // 
     // AddApprovalStep
     // 
     this.AddApprovalStep.Name = "AddApprovalStep";
     this.AddApprovalStep.ExecuteCode += new System.EventHandler(this.OnAddApprovalStep);
     // 
     // DynamicUpdateWorkflow
     // 
     this.Activities.Add(this.PORequest);
     this.Activities.Add(this.CreditCheckDelay);
     this.Activities.Add(this.CheckApproval);
     this.Activities.Add(this.POCreated);
     this.Name = "DynamicUpdateWorkflow";
     this.CanModifyActivities = false;
 }
开发者ID:ssickles,项目名称:archive,代码行数:53,代码来源:DynamicUpdateWorkflow.designer.cs


示例7: InitializeComponent

        private void InitializeComponent()
        {
            this.CanModifyActivities = true;
            System.Workflow.Activities.CodeCondition codecondition1 = new System.Workflow.Activities.CodeCondition();
            this.WhileLoop = new System.Workflow.Activities.WhileActivity();
            this.Parallel = new System.Workflow.Activities.ParallelActivity();
            this.Sequence1 = new System.Workflow.Activities.SequenceActivity();
            this.Sequence2 = new System.Workflow.Activities.SequenceActivity();
            this.ConsoleMessage1 = new System.Workflow.Activities.CodeActivity();
            this.ConsoleMessage2 = new System.Workflow.Activities.CodeActivity();
            // 
            // WhileLoop
            // 
            this.WhileLoop.Activities.Add(this.Parallel);
            codecondition1.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.WhileCondition);
            this.WhileLoop.Condition = codecondition1;
            this.WhileLoop.Name = "WhileLoop";
            // 
            // Parallel
            // 
            this.Parallel.Activities.Add(this.Sequence1);
            this.Parallel.Activities.Add(this.Sequence2);
            this.Parallel.Name = "Parallel";
            // 
            // Sequence1
            // 
            this.Sequence1.Activities.Add(this.ConsoleMessage1);
            this.Sequence1.Name = "Sequence1";
            // 
            // Sequence2
            // 
            this.Sequence2.Activities.Add(this.ConsoleMessage2);
            this.Sequence2.Name = "Sequence2";
            // 
            // ConsoleMessage1
            // 
            this.ConsoleMessage1.Name = "ConsoleMessage1";
            this.ConsoleMessage1.ExecuteCode += new System.EventHandler(this.OnConsoleMessage1);
            // 
            // ConsoleMessage2
            // 
            this.ConsoleMessage2.Name = "ConsoleMessage2";
            this.ConsoleMessage2.ExecuteCode += new System.EventHandler(this.OnConsoleMessage2);
            // 
            // WhileAndParallelWorkflow
            // 
            this.Activities.Add(this.WhileLoop);
            this.Name = "WhileAndParallelWorkflow";
            this.CanModifyActivities = false;

        }
开发者ID:ssickles,项目名称:archive,代码行数:51,代码来源:WhileAndParallelWorkflow.Designer.cs


示例8: InitializeComponent

        private void InitializeComponent()
        {
            this.CanModifyActivities = true;
            System.Workflow.Activities.CodeCondition codecondition1 = new System.Workflow.Activities.CodeCondition();
            this.ifElseActivity = new System.Workflow.Activities.IfElseActivity();
            this.approveIfElseBranch = new System.Workflow.Activities.IfElseBranchActivity();
            this.rejecteIfElseBranch = new System.Workflow.Activities.IfElseBranchActivity();
            this.approve = new System.Workflow.Activities.CodeActivity();
            this.reject = new System.Workflow.Activities.CodeActivity();
            // 
            // ifElseActivity
            // 
            this.ifElseActivity.Activities.Add(this.approveIfElseBranch);
            this.ifElseActivity.Activities.Add(this.rejecteIfElseBranch);
            this.ifElseActivity.Name = "ifElseActivity";
            // 
            // approveIfElseBranch
            // 
            this.approveIfElseBranch.Activities.Add(this.approve);
            codecondition1.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.IsApproved);
            this.approveIfElseBranch.Condition = codecondition1;
            this.approveIfElseBranch.Name = "approveIfElseBranch";
            // 
            // rejecteIfElseBranch
            // 
            this.rejecteIfElseBranch.Activities.Add(this.reject);
            this.rejecteIfElseBranch.Name = "rejecteIfElseBranch";
            // 
            // Approve
            // 
            this.approve.Name = "approve";
            this.approve.ExecuteCode += new System.EventHandler(this.OnApproved);
            // 
            // Reject
            // 
            this.reject.Name = "reject";
            this.reject.ExecuteCode += new System.EventHandler(this.OnRejected);
            // 
            // SequentialWorkflow
            // 
            this.Activities.Add(this.ifElseActivity);
            this.Name = "SequentialWorkflow";
            this.CanModifyActivities = false;

        }
开发者ID:spzenk,项目名称:sfdocsamples,代码行数:45,代码来源:SequentialWorkflow.designer.cs


示例9: InitializeComponent

        private void InitializeComponent()
        {
            this.CanModifyActivities = true;
            System.Workflow.Activities.CodeCondition codecondition1 = new System.Workflow.Activities.CodeCondition();
            this.IsUnderLimitIfElseActivity = new System.Workflow.Activities.IfElseActivity();
            this.YesIfElseBranch = new System.Workflow.Activities.IfElseBranchActivity();
            this.NoIfElseBranch = new System.Workflow.Activities.IfElseBranchActivity();
            this.ApprovePO = new System.Workflow.Activities.CodeActivity();
            this.RejectPO = new System.Workflow.Activities.CodeActivity();
            // 
            // IsUnderLimitIfElseActivity
            // 
            this.IsUnderLimitIfElseActivity.Activities.Add(this.YesIfElseBranch);
            this.IsUnderLimitIfElseActivity.Activities.Add(this.NoIfElseBranch);
            this.IsUnderLimitIfElseActivity.Name = "IsUnderLimitIfElseActivity";
            // 
            // YesIfElseBranch
            // 
            this.YesIfElseBranch.Activities.Add(this.ApprovePO);
            codecondition1.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.IsUnderLimit);
            this.YesIfElseBranch.Condition = codecondition1;
            this.YesIfElseBranch.Name = "YesIfElseBranch";
            // 
            // NoIfElseBranch
            // 
            this.NoIfElseBranch.Activities.Add(this.RejectPO);
            this.NoIfElseBranch.Name = "NoIfElseBranch";
            // 
            // ApprovePO
            // 
            this.ApprovePO.Name = "ApprovePO";
            this.ApprovePO.ExecuteCode += new System.EventHandler(this.OnApproved);
            // 
            // RejectPO
            // 
            this.RejectPO.Name = "RejectPO";
            this.RejectPO.ExecuteCode += new System.EventHandler(this.OnRejected);
            // 
            // SequentialWorkflow
            // 
            this.Activities.Add(this.IsUnderLimitIfElseActivity);
            this.Name = "SequentialWorkflow";
            this.CanModifyActivities = false;

        }
开发者ID:spzenk,项目名称:sfdocsamples,代码行数:45,代码来源:SequentialWorkflow.Designer.cs


示例10: InitializeComponent

        private void InitializeComponent()
        {
            this.CanModifyActivities = true;
            System.Workflow.ComponentModel.ActivityBind activitybind1 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.Activities.CodeCondition codecondition1 = new System.Workflow.Activities.CodeCondition();
            this.printInput = new System.Workflow.Activities.CodeActivity();
            this.dequeueInput = new Microsoft.Samples.Workflow.SimpleInput.Input();
            this.sequenceActivity = new System.Workflow.Activities.SequenceActivity();
            this.whileActivity = new System.Workflow.Activities.WhileActivity();
            // 
            // printInput
            // 
            this.printInput.Name = "printInput";
            this.printInput.ExecuteCode += new System.EventHandler(this.OnPrintInput);
            // 
            // dequeueInput
            // 
            activitybind1.Name = "SimpleInputWorkflow";
            activitybind1.Path = "Data";
            this.dequeueInput.Name = "dequeueInput";
            this.dequeueInput.Queue = "Queue";
            this.dequeueInput.SetBinding(Microsoft.Samples.Workflow.SimpleInput.Input.DataProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
            // 
            // sequenceActivity
            // 
            this.sequenceActivity.Activities.Add(this.dequeueInput);
            this.sequenceActivity.Activities.Add(this.printInput);
            this.sequenceActivity.Name = "sequenceActivity";
            // 
            // whileActivity
            // 
            this.whileActivity.Activities.Add(this.sequenceActivity);
            codecondition1.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.LoopCondition);
            this.whileActivity.Condition = codecondition1;
            this.whileActivity.Name = "whileActivity";
            // 
            // SimpleInputWorkflow
            // 
            this.Activities.Add(this.whileActivity);
            this.Name = "SimpleInputWorkflow";
            this.CanModifyActivities = false;

        }
开发者ID:ssickles,项目名称:archive,代码行数:43,代码来源:SimpleInputWorkflow.Designer.cs


示例11: InitializeComponent

        private void InitializeComponent()
        {
            this.CanModifyActivities = true;
            System.Workflow.Activities.CodeCondition codecondition1 = new System.Workflow.Activities.CodeCondition();
            this.CheckUser = new System.Workflow.Activities.CodeActivity();
            this.OKActivity = new System.Workflow.Activities.CodeActivity();
            this.whileActivity = new System.Workflow.Activities.WhileActivity();
            this.UserLogin = new System.Workflow.Activities.CodeActivity();
            // 
            // CheckUser
            // 
            this.CheckUser.Name = "CheckUser";
            this.CheckUser.ExecuteCode += new System.EventHandler(this.codeActivity2_ExecuteCode);
            // 
            // OKActivity
            // 
            this.OKActivity.Name = "OKActivity";
            this.OKActivity.ExecuteCode += new System.EventHandler(this.codeActivity1_ExecuteCode);
            // 
            // whileActivity
            // 
            this.whileActivity.Activities.Add(this.CheckUser);
            codecondition1.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.CheckValidation);
            this.whileActivity.Condition = codecondition1;
            this.whileActivity.Name = "whileActivity";
            // 
            // UserLogin
            // 
            this.UserLogin.Name = "UserLogin";
            this.UserLogin.ExecuteCode += new System.EventHandler(this.UserLogin_ExecuteCode);
            // 
            // myWF
            // 
            this.Activities.Add(this.UserLogin);
            this.Activities.Add(this.whileActivity);
            this.Activities.Add(this.OKActivity);
            this.Name = "myWF";
            this.CanModifyActivities = false;

        }
开发者ID:anytao,项目名称:insidenet,代码行数:40,代码来源:myWF.Designer.cs


示例12: SimpleWorkFlowDelay

        	public SimpleWorkFlowDelay ()
		{
			CanModifyActivities = true;
			CodeCondition codecondition1 = new CodeCondition ();
			BackUpFile = new CodeActivity ();
			WhileFilesToBackup = new WhileActivity ();
			DelaySystemReady = new DelayActivity ();

			BackUpFile.ExecuteCode += new EventHandler (BackUpFile_ExecuteCode);

			WhileFilesToBackup.Activities.Add(BackUpFile);
			codecondition1.Condition += new EventHandler <ConditionalEventArgs>(MoreFiles);

			WhileFilesToBackup.Condition =  codecondition1;

			DelaySystemReady.TimeoutDuration = TimeSpan.Parse ("00:00:02");

			Activities.Add (DelaySystemReady);
			Activities.Add (WhileFilesToBackup);
			Name = "SimpleWorkFlowDelay";
			CanModifyActivities = false;
		}
开发者ID:alesliehughes,项目名称:olive,代码行数:22,代码来源:SimpleWorkFlowDelayTest.cs


示例13: InitializeComponent

		private void InitializeComponent()
		{
            this.CanModifyActivities = true;
            System.Workflow.Activities.CodeCondition codecondition1 = new System.Workflow.Activities.CodeCondition();
            System.Workflow.Activities.CodeCondition codecondition2 = new System.Workflow.Activities.CodeCondition();
            System.Workflow.Activities.CodeCondition codecondition3 = new System.Workflow.Activities.CodeCondition();
            this.withdrawalActivity = new System.Workflow.Activities.CodeActivity();
            this.depositActivity = new System.Workflow.Activities.CodeActivity();
            this.withdrawalIfElseBranchActivity2 = new System.Workflow.Activities.IfElseBranchActivity();
            this.depositIfElseBranchActivity = new System.Workflow.Activities.IfElseBranchActivity();
            this.depositOrWithdrawalIfElseActivity = new System.Workflow.Activities.IfElseActivity();
            this.userInputActivity = new System.Workflow.Activities.CodeActivity();
            this.bankMachineSequenceActivity = new System.Workflow.Activities.SequenceActivity();
            this.serviceChargeActivity = new Microsoft.Samples.Workflow.ServiceChargeActivityLibrary.ServiceCharge();
            this.whileNotExitActivity = new System.Workflow.Activities.WhileActivity();
            // 
            // withdrawalActivity
            // 
            this.withdrawalActivity.Name = "withdrawalActivity";
            this.withdrawalActivity.ExecuteCode += new System.EventHandler(this.WithdrawalExecuteCode);
            // 
            // depositActivity
            // 
            this.depositActivity.Name = "depositActivity";
            this.depositActivity.ExecuteCode += new System.EventHandler(this.DepositExecuteCode);
            // 
            // withdrawalIfElseBranchActivity2
            // 
            this.withdrawalIfElseBranchActivity2.Activities.Add(this.withdrawalActivity);
            codecondition1.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.CheckWithdrawal);
            this.withdrawalIfElseBranchActivity2.Condition = codecondition1;
            this.withdrawalIfElseBranchActivity2.Name = "withdrawalIfElseBranchActivity2";
            // 
            // depositIfElseBranchActivity
            // 
            this.depositIfElseBranchActivity.Activities.Add(this.depositActivity);
            codecondition2.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.CheckDeposit);
            this.depositIfElseBranchActivity.Condition = codecondition2;
            this.depositIfElseBranchActivity.Name = "depositIfElseBranchActivity";
            // 
            // depositOrWithdrawalIfElseActivity
            // 
            this.depositOrWithdrawalIfElseActivity.Activities.Add(this.depositIfElseBranchActivity);
            this.depositOrWithdrawalIfElseActivity.Activities.Add(this.withdrawalIfElseBranchActivity2);
            this.depositOrWithdrawalIfElseActivity.Name = "depositOrWithdrawalIfElseActivity";
            // 
            // userInputActivity
            // 
            this.userInputActivity.Name = "userInputActivity";
            this.userInputActivity.ExecuteCode += new System.EventHandler(this.UserInputExecuteCode);
            // 
            // bankMachineSequenceActivity
            // 
            this.bankMachineSequenceActivity.Activities.Add(this.userInputActivity);
            this.bankMachineSequenceActivity.Activities.Add(this.depositOrWithdrawalIfElseActivity);
            this.bankMachineSequenceActivity.Name = "bankMachineSequenceActivity";
            // 
            // serviceChargeActivity
            // 
            this.serviceChargeActivity.Fee = 2.41;
            this.serviceChargeActivity.Name = "serviceChargeActivity";
            // 
            // whileNotExitActivity
            // 
            this.whileNotExitActivity.Activities.Add(this.bankMachineSequenceActivity);
            codecondition3.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.CheckOption);
            this.whileNotExitActivity.Condition = codecondition3;
            this.whileNotExitActivity.Name = "whileNotExitActivity";
            // 
            // BankMachineWorkflow
            // 
            this.Activities.Add(this.whileNotExitActivity);
            this.Activities.Add(this.serviceChargeActivity);
            this.Name = "BankMachineWorkflow";
            this.CanModifyActivities = false;

		}
开发者ID:ssickles,项目名称:archive,代码行数:77,代码来源:BankMachineWorkflow.designer.cs


示例14: InitializeComponent

        private void InitializeComponent()
        {
            this.CanModifyActivities = true;
            System.Workflow.ComponentModel.ActivityBind activitybind1 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind2 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind3 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind4 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind5 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.Activities.CodeCondition codecondition1 = new System.Workflow.Activities.CodeCondition();
            System.Workflow.ComponentModel.ActivityBind activitybind6 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind7 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind8 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind9 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind10 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind11 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind12 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind13 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind14 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind15 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind16 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind17 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind18 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind19 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind20 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.Activities.CodeCondition codecondition2 = new System.Workflow.Activities.CodeCondition();
            System.Workflow.Activities.CodeCondition codecondition3 = new System.Workflow.Activities.CodeCondition();
            System.Workflow.ComponentModel.ActivityBind activitybind21 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind22 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind23 = new System.Workflow.ComponentModel.ActivityBind();
            System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<System.Guid>> dictionary_21 = new System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<System.Guid>>();
            this.ResolveDynamicLookupString = new MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.ComponentActivities.ResolveLookupString();
            this.ForEachDynamicStringForResolution = new System.Workflow.Activities.ReplicatorActivity();
            this.ResolveDynamicExpression = new MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.ComponentActivities.ResolveLookups();
            this.PrepareDynamicGrammarResolution = new System.Workflow.Activities.CodeActivity();
            this.DynamicGrammarResolutionNeed = new System.Workflow.Activities.IfElseBranchActivity();
            this.Update = new MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.ComponentActivities.UpdateLookups();
            this.GetActorForChildRequest = new MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.ComponentActivities.DetermineActor();
            this.PrepareUpdate = new System.Workflow.Activities.CodeActivity();
            this.IfDynamicGrammarResolutionNeed = new System.Workflow.Activities.IfElseActivity();
            this.ResolveForValue = new MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.ComponentActivities.ResolveLookups();
            this.GetActor = new MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.ComponentActivities.DetermineActor();
            this.Submit = new System.Workflow.Activities.SequenceActivity();
            this.ActorIsNotValueExpression = new System.Workflow.Activities.IfElseBranchActivity();
            this.ForEachIteration = new System.Workflow.Activities.ReplicatorActivity();
            this.PrepareIteration = new System.Workflow.Activities.CodeActivity();
            this.IfActorIsNotValueExpression = new System.Workflow.Activities.IfElseActivity();
            this.Resolve = new MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.ComponentActivities.ResolveLookups();
            this.RunQueries = new MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.ComponentActivities.ResolveQueries();
            this.Prepare = new System.Workflow.Activities.CodeActivity();
            // 
            // ResolveDynamicLookupString
            // 
            this.ResolveDynamicLookupString.ComparedRequestId = new System.Guid("00000000-0000-0000-0000-000000000000");
            this.ResolveDynamicLookupString.Name = "ResolveDynamicLookupString";
            activitybind1.Name = "RunQueries";
            activitybind1.Path = "QueryResults";
            this.ResolveDynamicLookupString.Resolved = null;
            this.ResolveDynamicLookupString.ResolvedList = null;
            this.ResolveDynamicLookupString.StringForResolution = null;
            activitybind2.Name = "UpdateResources";
            activitybind2.Path = "Value";
            this.ResolveDynamicLookupString.SetBinding(MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.ComponentActivities.ResolveLookupString.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind2)));
            this.ResolveDynamicLookupString.SetBinding(MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.ComponentActivities.ResolveLookupString.QueryResultsProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
            activitybind3.Name = "UpdateResources";
            activitybind3.Path = "DynamicStringsForResolution";
            // 
            // ForEachDynamicStringForResolution
            // 
            this.ForEachDynamicStringForResolution.Activities.Add(this.ResolveDynamicLookupString);
            this.ForEachDynamicStringForResolution.ExecutionType = System.Workflow.Activities.ExecutionType.Sequence;
            this.ForEachDynamicStringForResolution.Name = "ForEachDynamicStringForResolution";
            this.ForEachDynamicStringForResolution.ChildInitialized += new System.EventHandler<System.Workflow.Activities.ReplicatorChildEventArgs>(this.ForEachDynamicStringForResolution_ChildInitialized);
            this.ForEachDynamicStringForResolution.ChildCompleted += new System.EventHandler<System.Workflow.Activities.ReplicatorChildEventArgs>(this.ForEachDynamicStringForResolution_ChildCompleted);
            this.ForEachDynamicStringForResolution.SetBinding(System.Workflow.Activities.ReplicatorActivity.InitialChildDataProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind3)));
            // 
            // ResolveDynamicExpression
            // 
            this.ResolveDynamicExpression.ComparedRequestId = new System.Guid("00000000-0000-0000-0000-000000000000");
            activitybind4.Name = "UpdateResources";
            activitybind4.Path = "ActivityExpressionEvaluator.LookupCache";
            this.ResolveDynamicExpression.Name = "ResolveDynamicExpression";
            activitybind5.Name = "UpdateResources";
            activitybind5.Path = "Value";
            this.ResolveDynamicExpression.SetBinding(MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.ComponentActivities.ResolveLookups.LookupsProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind4)));
            this.ResolveDynamicExpression.SetBinding(MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.ComponentActivities.ResolveLookups.QueryResultsProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
            this.ResolveDynamicExpression.SetBinding(MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.ComponentActivities.ResolveLookups.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind5)));
            // 
            // PrepareDynamicGrammarResolution
            // 
            this.PrepareDynamicGrammarResolution.Name = "PrepareDynamicGrammarResolution";
            this.PrepareDynamicGrammarResolution.ExecuteCode += new System.EventHandler(this.PrepareDynamicGrammarResolution_ExecuteCode);
            // 
            // DynamicGrammarResolutionNeed
            // 
            this.DynamicGrammarResolutionNeed.Activities.Add(this.PrepareDynamicGrammarResolution);
            this.DynamicGrammarResolutionNeed.Activities.Add(this.ResolveDynamicExpression);
            this.DynamicGrammarResolutionNeed.Activities.Add(this.ForEachDynamicStringForResolution);
            codecondition1.Condition += new System.EventHandler<System.Workflow.Activities.ConditionalEventArgs>(this.DynamicGrammarResolutionNeed_Condition);
            this.DynamicGrammarResolutionNeed.Condition = codecondition1;
            this.DynamicGrammarResolutionNeed.Name = "DynamicGrammarResolutionNeed";
//.........这里部分代码省略.........
开发者ID:NileshGhodekar,项目名称:MIMWAL,代码行数:101,代码来源:UpdateResources.Designer.cs


示例15: InitializeComponent

        private void InitializeComponent()
        {
            this.CanModifyActivities = true;
            System.Workflow.ComponentModel.ActivityBind activitybind1 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind2 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.ComponentModel.ActivityBind activitybind3 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.Activities.CodeCondition codecondition1 = new System.Workflow.Activities.CodeCondition();
            System.Workflow.Activities.CodeCondition codecondition2 = new System.Workflow.Activities.CodeCondition();
            System.Workflow.Activities.CodeCondition codecondition3 = new System.Workflow.Activities.CodeCondition();
            this.Query = new MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.ComponentActivities.FindResources();
            this.PrepareAccountActor = new System.Workflow.Activities.CodeActivity();
            this.Resolve = new MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.ComponentActivities.ResolveLookups();
            this.PrepareResolveActor = new System.Workflow.Activities.CodeActivity();
            this.AccountActor = new System.Workflow.Activities.IfElseBranchActivity();
            this.ResolveActor = new System.Workflow.Activities.IfElseBranchActivity();
            this.Decide = new System.Workflow.Activities.CodeActivity();
            this.IfActorIsAccountActor = new System.Workflow.Activities.IfElseActivity();
            this.IfActorIsExpression = new System.Workflow.Activities.IfElseActivity();
            this.ActorIsNotSet = new System.Workflow.Activities.IfElseBranchActivity();
            this.IfActorIsNotSet = new System.Workflow.Activities.IfElseActivity();
            // 
            // Query
            // 
            this.Query.Attributes = null;
            this.Query.ExcludeWorkflowTarget = false;
            this.Query.FoundIds = null;
            this.Query.FoundResources = null;
            this.Query.Name = "Query";
            this.Query.QueryResults = null;
            this.Query.Value = null;
            this.Query.XPathFilter = null;
            // 
            // PrepareAccountActor
            // 
            this.PrepareAccountActor.Name = "PrepareAccountActor";
            this.PrepareAccountActor.ExecuteCode += new System.EventHandler(this.PrepareAccountActor_ExecuteCode);
            // 
            // Resolve
            // 
            this.Resolve.ComparedRequestId = new System.Guid("00000000-0000-0000-0000-000000000000");
            activitybind1.Name = "DetermineActor";
            activitybind1.Path = "ActivityExpressionEvaluator.LookupCache";
            this.Resolve.Name = "Resolve";
            activitybind2.Name = "DetermineActor";
            activitybind2.Path = "QueryResults";
            activitybind3.Name = "DetermineActor";
            activitybind3.Path = "Value";
            this.Resolve.SetBinding(MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.ComponentActivities.ResolveLookups.QueryResultsProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind2)));
            this.Resolve.SetBinding(MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.ComponentActivities.ResolveLookups.LookupsProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
            this.Resolve.SetBinding(MicrosoftServices.IdentityManagement.WorkflowActivityLibrary.ComponentActivities.ResolveLookups.ValueProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind3)));
            // 
            // PrepareResolveActor
            // 
            this.PrepareResolveActor.Na 

鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Activities.ConditionalEventArgs类代码示例发布时间:2022-05-26
下一篇:
C# Threading.DispatcherUnhandledExceptionEventArgs类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap