/// <summary> /// Creates a section for an (implemented) rule (or sub-rule of a rule) /// </summary> /// <param name="section">Section to which the new section will be added</param> /// <param name="anEnum">The rule to add</param> /// <param name="addDetails">Add details or simply enumerate the enums</param> private void AddRuleRow(DataDictionary.Rules.Rule aRule, bool addDetails) { if (addDetails) { AddTableHeader("Rule " + aRule.Name); AddRow(aRule.Comment); AddRow("Activation priority", aRule.getPriority_AsString()); AddRow(Utils.RTFConvertor.RTFToPlainText(aRule.getExplain(false))); } else { AddRow(aRule.Name + " (" + GetRequirementsAsString(aRule.Requirements) + ")"); } foreach (DataDictionary.Rules.RuleCondition ruleCondition in aRule.RuleConditions) { foreach (DataDictionary.Rules.Rule subRule in ruleCondition.SubRules) { AddRuleRow(subRule, addDetails); } } }