Exemplo n.º 1
0
        public Flowsheet RemoveDesignSpecification(string name)
        {
            var spec = DesignSpecifications.FirstOrDefault(eq => eq.Name == name);

            if (spec != null)
            {
                DesignSpecifications.Remove(spec);
            }

            return(this);
        }
Exemplo n.º 2
0
        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);
        }