public override void Execute(object parameter) { var product = (ProductViewModel)parameter; EditProductWindow editProductForm = new EditProductWindow(new EditWindowViewModel(product)); editProductForm.Show(); }
private void OnEditCommandExecuted(object p) { EditProductWindow newProduct = new EditProductWindow(); newProduct.Show(); }