public void DynAfterAdd(BEManager be, DataRow dr, appDB.ddTableRow ruleDefinition) { if (ruleDefinition == null) { return; } FileManager fm = GetFMFromBE(be); //set defaults myA.GetddField().DynDefaultValues(fm, dr, ruleDefinition); foreach (appDB.ddRuleRow ddr in ruleDefinition.GetddRuleRows()) { //for "beforeupdate" event if (ddr.EventId == 4 && ddr.Enabled) { //check rules RunRule(null, dr, null, fm, null, ddr); } } }