예제 #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);
 }
예제 #2
0
 public RecipeItem(decimal quantity, RecipeableItem recipeableItem)
 {
     Quantity       = quantity;
     RecipeableItem = recipeableItem;
 }
예제 #3
0
파일: StockItem.cs 프로젝트: Slesa/Poseidon
 public StockItem(decimal quantity, RecipeableItem recipeableItem)
 {
     Quantity = quantity;
     RecipeableItem = recipeableItem;
 }