private void editProduct(object parameter) { Window editionWindow = new ProductCreation(selectedProduct); editionWindow.Closed += updateShownProducts; editionWindow.ShowDialog(); }
private void createProduct(object parameter) { Window creationWindow = new ProductCreation(); creationWindow.Closed += updateShownProducts; creationWindow.ShowDialog(); }