AgGateway.ADAPT.ISOv4Plugin.Loaders.ProductMixLoader.LoadProductComponents C# (CSharp) Method

LoadProductComponents() private method

private LoadProductComponents ( XmlNodeList inputNodes, AgGateway.ADAPT.ApplicationDataModel.Products.ProductMix productMix ) : bool
inputNodes System.Xml.XmlNodeList
productMix AgGateway.ADAPT.ApplicationDataModel.Products.ProductMix
return bool
        private bool LoadProductComponents(XmlNodeList inputNodes, ProductMix productMix)
        {
            List<Ingredient> components = new List<Ingredient>();
            foreach (XmlNode productRelationNode in inputNodes)
            {
                var component = LoadProductRelation(productRelationNode, productMix);
                if (component == null)
                    return false;
                components.Add(component);
            }

            _taskDocument.Ingredients.AddRange(components);
            return true;
        }