Esempio n. 1
0
        public RuleBase(RuleBaseType ruleBase)
        {
            int ruleCount = ruleBase.GetRulesCount();

            for (int i = 0; i < ruleCount; i++)
            {
                Rule thisRule = new Rule(ruleBase.GetRulesAt(i));

                AddRule(thisRule);
            }
        }
Esempio n. 2
0
		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();
        }