public void LoadConsecutiveFail(XmlDocument xmlDoc, ConsecutiveFailConfigData configData) { configData.Enabled = GetBool(xmlDoc, "AutoConsecutiveFailEnabled", configData.Enabled); configData.Threshold = GetInt(xmlDoc, "AutoConsecutiveFailThreshold", configData.Threshold); configData.ResetCounterOnEachRow = GetBool(xmlDoc, "AutoConsecutiveFailResetCounter", configData.ResetCounterOnEachRow); configData.ClearCustomRuleList(); configData.AddRangeToCustomRuleList(GetCustomRuleList(xmlDoc, "AutoConsecutiveFailCustomRuleItem")); }
private void LoadConsecutiveFail(XmlDocument xmlDoc, ConsecutiveFailConfigData configData) { XmlOldConsecutiveFail xmlConsecutiveFail = new XmlOldConsecutiveFail(); xmlConsecutiveFail.LoadConfig(xmlDoc); configData.Enabled = xmlConsecutiveFail.Enabled; configData.Threshold = xmlConsecutiveFail.Limit; configData.ResetCounterOnEachRow = xmlConsecutiveFail.ResetCounterOnEachRow; configData.ClearCustomRuleList(); configData.AddRangeToCustomRuleList(xmlConsecutiveFail.CustomRules); }