private void SaveConsecutiveFail(XmlDocument xmlDoc, ConsecutiveFailConfigData configData) { XmlOldConsecutiveFail xmlConsecutiveFail = new XmlOldConsecutiveFail(); xmlConsecutiveFail.Enabled = configData.Enabled; xmlConsecutiveFail.Limit = configData.Threshold; xmlConsecutiveFail.ResetCounterOnEachRow = configData.ResetCounterOnEachRow; xmlConsecutiveFail.CustomRules = new List<ConsecutiveFailCustomRule>(configData.CustomRuleList); xmlConsecutiveFail.SaveConfig(xmlDoc); }