Beispiel #1
0
        private void EditProduct(object sender, RoutedEventArgs e)
        {
            Models.Product model = (sender as Button).DataContext as Models.Product;

            ProductEdit productEdit = new ProductEdit();

            productEdit.SetData(model);
            productEdit.Show();
        }
Beispiel #2
0
        private void ProductEditClick(object sender, RoutedEventArgs e)
        {
            ProductEdit productEdit = new ProductEdit();

            productEdit.Show();
        }