public XmlWantedListInventory(Inventory inventory, string wantedListId)
            : this()
        {
            WantedListId = wantedListId;

            foreach (XmlWantedListItem xmlItem in
                inventory.GetParts().Select(item => new XmlWantedListItem(item) { WantedListId = wantedListId }))
            {
                XmlInventory.Add(xmlItem);
            }
        }
 public InventoryViewModel()
 {
     inventory = new Inventory();
 }