Esempio n. 1
0
        public EditItem(Window owner, ItemModel model)
        {
            InitializeComponent();

            this.Owner = owner;
            this.Model = model.Clone();
            this.Initialize();
        }
Esempio n. 2
0
        private void uxFileChange_Click(object sender, RoutedEventArgs e)
        {
            var window = new ItemWindow();

            if (selectedItem != null)
            {
                window.Item = selectedItem.Clone();

                if (window.ShowDialog() == true)
                {
                    App.InventoryRepository.Update(window.Item.ToRepositoryModel());
                    LoadItems();
                }
            }
        }