コード例 #1
0
 private void InitializeComponent()
 {
     this.CanModifyActivities = true;
     System.Workflow.Activities.Rules.RuleSetReference rulesetreference1 = new System.Workflow.Activities.Rules.RuleSetReference();
     this.policyActivity1 = new System.Workflow.Activities.PolicyActivity();
     //
     // policyActivity1
     //
     this.policyActivity1.Name = "policyActivity1";
     rulesetreference1.RuleSetName = "ValidateOrders";
     this.policyActivity1.RuleSetReference = rulesetreference1;
     //
     // Workflow
     //
     this.Activities.Add(this.policyActivity1);
     this.Name = "Workflow";
     this.CanModifyActivities = false;
 }
コード例 #2
0
 private void InitializeComponent()
 {
     this.CanModifyActivities = true;
     System.Workflow.Activities.Rules.RuleSetReference rulesetreference1 = new System.Workflow.Activities.Rules.RuleSetReference();
     this.simpleDiscountPolicy = new System.Workflow.Activities.PolicyActivity();
     //
     // simpleDiscountPolicy
     //
     this.simpleDiscountPolicy.Name = "simpleDiscountPolicy";
     rulesetreference1.RuleSetName = "DiscountRuleSet";
     this.simpleDiscountPolicy.RuleSetReference = rulesetreference1;
     //
     // SimplePolicyWorkflow
     //
     this.Activities.Add(this.simpleDiscountPolicy);
     this.Name = "SimplePolicyWorkflow";
     this.Completed += new System.EventHandler(this.WorkflowCompleted);
     this.CanModifyActivities = false;
 }