private RuleEntry createRuleEntry(Wrapper.Model model, string name, object element, Rule rule) { RuleEntry ruleEntry = new RuleEntry(); ruleEntry.name = name; ruleEntry.GUID = Guid.NewGuid().ToString(); ruleEntry.actions = 0; ruleEntry.element = element; ruleEntry.rule = rule; ruleEntry.model = model; return ruleEntry; }
private void addToDefectsList(string defectDescription, RuleEntry ruleEntry) { ListBoxObject listBoxObject = ruleEntry.createListBoxObject(defectDescription); BPAddIn.BPAddIn.defectsWindow.addToList(listBoxObject); }