示例#1
0
 public Recipe(string pName, string pType)
 {
     name = pName;
     type = pType;
     ProductDocumationAccess p = new ProductDocumationAccess();
     IList = p.GetIngredients(pName);
     CalculateUse(p.GetAmoughtIngredients(pType));
 }
示例#2
0
 public void GetSizeCost(string pType)
 {
     ProductDocumationAccess p = new ProductDocumationAccess();
     sizeCost = p.GetProductSizeCost(pType);
 }