Beispiel #1
0
        void AddButton_Click(object sender, EventArgs e)
        {
            InventoryCell cell = _inventory.GetCellsContent()[_selectedId];

            if (cell.ItemsCount > 0)
            {
                _inventory.AddItem(cell.ItemId, 1);
                UpdateInventoryGrid();
            }
        }