public RuleBase(RuleBaseType ruleBase) { int ruleCount = ruleBase.GetRulesCount(); for (int i = 0; i < ruleCount; i++) { Rule thisRule = new Rule(ruleBase.GetRulesAt(i)); AddRule(thisRule); } }
public bool Load(RuleBaseType ruleBase) { m_Rules.Clear(); int ruleCount = ruleBase.GetRulesCount(); for (int i = 0; i < ruleCount; i++) { Rule thisRule = new Rule(ruleBase.GetRulesAt(i)); AddRule(thisRule); } return(Validate()); }