Exemplo n.º 1
0
 public void AddAllItemsToPack()
 {
     foreach (var item in ItemsInInventory)
     {
         ItemsInPack.Add(item);
     }
     ItemsInInventory.Clear();
     CalculatePackWeight();
     Console.WriteLine("Added All Items to Pack");
 }
Exemplo n.º 2
0
        public void AddItemToPack()
        {
            if (SelectedInventoryItem == null)
            {
                return;
            }

            ItemsInPack.Add(SelectedInventoryItem);
            ItemsInInventory.Remove(SelectedInventoryItem);
            CalculatePackWeight();

            Console.WriteLine("Added Item to Pack");
        }