Example #1
0
        private void AddItem(object sender, RoutedEventArgs e)
        {
            AddItemWindow aiw = new AddItemWindow();

            aiw.ShowDialog();
            var item = aiw.RetItem;

            if (item == null)
            {
                return;
            }
            App.SData.Items.Add(item);
        }
        private void ItemClicked()
        {
            AddItemWindow aiw = new AddItemWindow(ItemList.SelectedItem as Item);

            aiw.ShowDialog();
        }