private void buttonNCat_Click(object sender, RoutedEventArgs e) { AltaCategoria view = new AltaCategoria(); AddCategoriaViewModel viewModel = new AddCategoriaViewModel(new CatalogCategoriaViewModel(), (AddArticuloViewModel)this.DataContext); view.DataContext = viewModel; view.ShowDialog(); }
private void BtnCategorias_Click_1(object sender, EventArgs e) { AltaCategoria ventanacat = new AltaCategoria(); ventanacat.ShowDialog(); }