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(); }
public override object Clone() { RuleConditions list = new RuleConditions(); foreach (RuleCondition rc in this) { list.Add((RuleCondition)rc.Clone()); } return(list); }