Beispiel #1
0
 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();
 }
Beispiel #2
0
        public override object Clone()
        {
            RuleConditions list = new RuleConditions();

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

            return(list);
        }