private void BtnAgregar_Click(object sender, RoutedEventArgs e) { TerminoWin addTerm = new TerminoWin() { Owner = this }; addTerm.ShowDialog(); }
private void BtnEditar_Click(object sender, RoutedEventArgs e) { if (selectedTermino == null) { MessageBox.Show("Primero debes de seleccionar el término que deseas modificar"); return; } TerminoWin addTerm = new TerminoWin(selectedTermino) { Owner = this }; addTerm.ShowDialog(); }