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(); }
private void ProductEditClick(object sender, RoutedEventArgs e) { ProductEdit productEdit = new ProductEdit(); productEdit.Show(); }