private void btn_AfegirProducte_Click(object sender, RoutedEventArgs e) { AfegirProducteWindow afegirProducteWindow = new AfegirProducteWindow( controller.getBaseContext(), new producte(), modeControllerProducte.AFEGIR); afegirProducteWindow.ShowDialog(); actualitzaProductes(); }
private void btn_ModificarProducte_Click(object sender, RoutedEventArgs e) { AfegirProducteWindow modificaProducteWindow = new AfegirProducteWindow( controller.getBaseContext(), dataGrid_productes.SelectedItem as producte, modeControllerProducte.MODIFICAR); modificaProducteWindow.ShowDialog(); actualitzaProductes(); }