private void btModificarElemento_Click(object sender, RoutedEventArgs e) { try { var seleccionado = (BomberoDataGrid)dataGridBomberos.SelectedItem; SGREB.Formularios.Bombero bombero = new Formularios.Bombero(seleccionado.id); bombero.ShowDialog(); obtenerBomberos(); } catch { } }
private void btAgregarElemento_Click(object sender, RoutedEventArgs e) { SGREB.Formularios.Bombero bombero = new Formularios.Bombero(); bombero.ShowDialog(); obtenerBomberos(); }