public Recipe(string pName, string pType) { name = pName; type = pType; ProductDocumationAccess p = new ProductDocumationAccess(); IList = p.GetIngredients(pName); CalculateUse(p.GetAmoughtIngredients(pType)); } private void CalculateUse(double amought)