コード例 #1
0
ファイル: Rule.cs プロジェクト: ewin66/dev
 public Rule(string name)
 {
     Name        = name;
     ApplyNow    = false; // turned off by default
     Enabled     = true;  // turned on by default
     TriggerText = "Apply this rule";
     actions     = new RuleActions();
     conditions  = new RuleConditions();
     exceptions  = new RuleConditions();
 }
コード例 #2
0
ファイル: RuleCondition.cs プロジェクト: ewin66/dev
        public override object Clone()
        {
            RuleConditions list = new RuleConditions();

            foreach (RuleCondition rc in this)
            {
                list.Add((RuleCondition)rc.Clone());
            }

            return(list);
        }