private void altaMedicosToolStripMenuItem_Click(object sender, EventArgs e) { try { AltaMedico ventana = new AltaMedico(); ventana.ShowDialog(); } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }
private void button2_Click(object sender, EventArgs e) { try { AltaMedico form = new AltaMedico((Medicos)dgvMedicos.CurrentRow.DataBoundItem); form.ShowDialog(); CargarMedicos(); } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }