|
|
@ -14,22 +14,24 @@ namespace BlazorApp.Components
|
|
|
|
|
|
|
|
|
|
|
|
public Item CurrentDragItem { get; set; }
|
|
|
|
public Item CurrentDragItem { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public int CurrentDragIndex { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
[Inject]
|
|
|
|
[Inject]
|
|
|
|
public IDataService DataService { get; set; }
|
|
|
|
public IDataService DataService { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
[Parameter]
|
|
|
|
[Parameter]
|
|
|
|
public List<Item> Items { get; set; }
|
|
|
|
public List<Item> Items { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public List<Item> RecipeItems { get; set; }
|
|
|
|
public List<Item> InventoryItems { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
private int totalItem;
|
|
|
|
private int totalItem;
|
|
|
|
|
|
|
|
|
|
|
|
public InventoryComp()
|
|
|
|
public InventoryComp()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
this.RecipeItems = new List<Item> { };
|
|
|
|
this.InventoryItems = new List<Item> { };
|
|
|
|
for (int i = 0; i < 18; i++)
|
|
|
|
for (int i = 0; i < 18; i++)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
this.RecipeItems.Append(null);
|
|
|
|
this.InventoryItems.Append(null);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|