public void AddCompare(AutomationTask task, AutomationCompare compare) { compare.AutomationTask = task; AutomationCompares.Add(compare); }