private void PutInventoryEquipmentInItemDictionary(EquippedItem equippedItem, string characterName)
        {
            var key = equippedItem.Id.ToString();
            // TODO: figure out how get binding??
            var inventoryItem = new ItemLocationInformation {
                Quantity = 1
            };

            var locationDescription = $"{characterName}, slot: {equippedItem.Slot}";

            this.PutItemIntoDictionary(key, inventoryItem, LocationType.Equipped, locationDescription);
        }
        /// <summary>
        /// Puts itemLocation information into the itemLocation dictionary.
        /// </summary>
        /// <param name="key">
        /// The key.
        /// </param>
        /// <param name="itemLocation">
        /// The itemLocation.
        /// </param>
        /// <param name="locType">
        /// The location type.
        /// </param>
        /// <param name="locDescription">
        /// The location description.
        /// </param>
        private void PutItemIntoDictionary(string key, ItemLocationInformation itemLocation, string locType, string locDescription = null)
        {
            itemLocation.LocationType        = locType;
            itemLocation.LocationDescription = locDescription;

            if (this.itemDictionary.ContainsKey(key))
            {
                this.itemDictionary[key].Add(itemLocation);
            }
            else
            {
                this.itemDictionary.Add(key, new List <ItemLocationInformation> {
                    itemLocation
                });
            }
        }
        public ItemLocationInformation LoadItemLocationInformation()
        {
            if (!verifyItemIsInventory())
            {
                return(null);
            }
            if (_ItemLocationInformation == null)
            {
                try
                {
                    _ItemLocationInformation = itemApi.GetItemLocation(Item.Id);
                }
                catch (Exception ex)
                {
                    Debug.WriteLine(ex);
                }
            }

            return(_ItemLocationInformation);
        }