private void uxFileChange_Click(object sender, RoutedEventArgs e)
        {
            var window = new InventoryWindow();

            window.Inventory = selectedInventory;

            if (window.ShowDialog() == true)
            {
                App.InventoryRepository.Update(window.Inventory.ToRepositoryModel());
                LoadInventory();
            }
        }
        private void uxFileNew_Click(object sender, RoutedEventArgs e)
        {
            var window = new InventoryWindow();

            if (window.ShowDialog() == true)
            {
                var uiInventoryModel = window.Inventory;


                var repositoryInventoryModel = uiInventoryModel.ToRepositoryModel();


                App.InventoryRepository.Add(repositoryInventoryModel);

                LoadInventory();
            }
        }