Beispiel #1
0
        private void ListViewItem_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            Products         p          = ((ListViewItem)sender).Content as Products;
            AddProductWindow addPWindow = new AddProductWindow(p);

            addPWindow.Closing += AddPWindow_Closing;
            addPWindow.ShowDialog();
        }
Beispiel #2
0
        private void Add_Button(object sender, RoutedEventArgs e)
        {
            Products         product    = new Products();
            AddProductWindow addPWindow = new AddProductWindow(product);

            addPWindow.Closing += AddPWindow_Closing;
            addPWindow.ShowDialog();
        }