Ejemplo n.º 1
0
 public Flowsheet RemoveDesignSpecification(Equation eq)
 {
     if (DesignSpecifications.Contains(eq))
     {
         DesignSpecifications.Remove(eq);
     }
     return(this);
 }
Ejemplo n.º 2
0
        public Flowsheet RemoveDesignSpecification(string name)
        {
            var spec = DesignSpecifications.FirstOrDefault(eq => eq.Name == name);

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

            return(this);
        }
Ejemplo n.º 3
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);
        }