//Eventos private void ClickAgregar(object sender, RoutedEventArgs e) { var ventana = new DetallePersona(); ventana.Owner = Window.GetWindow(this); ventana.ShowDialog(); ActualizarPersonas(); }
private void Seleccionar(object sender, MouseButtonEventArgs e) { var ventana = new DetallePersona(); ventana.Persona = (sender as ListViewItem).Content as Modelos.Persona; ventana.Owner = Window.GetWindow(this); ventana.ShowDialog(); ActualizarPersonas(); }