public Flowsheet RemoveDesignSpecification(string name) { var spec = DesignSpecifications.FirstOrDefault(eq => eq.Name == name); if (spec != null) { DesignSpecifications.Remove(spec); } return(this); }
public Flowsheet ReplaceDesignSpecification(string name, Equation eq) { var spec = DesignSpecifications.FirstOrDefault(s => s.Name == name); if (spec != null) { DesignSpecifications.Remove(spec); eq.Name = name; eq.Group = "Design Spec"; AddDesignSpecification(eq); } return(this); }