Exemplo n.º 1
0
 public static string GetRecipeableItemType(this RecipeableItem item)
 {
     if (item != null)
     {
         if (item is PurchaseItem)
         {
             return("I");
         }
         if (item is ProductionItem)
         {
             return("P");
         }
     }
     return(null);
 }
Exemplo n.º 2
0
 public RecipeItem(decimal quantity, RecipeableItem recipeableItem)
 {
     Quantity       = quantity;
     RecipeableItem = recipeableItem;
 }
Exemplo n.º 3
0
 public RecipeItem(decimal quantity, RecipeableItem recipeableItem)
 {
     Quantity = quantity;
     RecipeableItem = recipeableItem;
 }