示例#1
0
 private void altaMedicosToolStripMenuItem_Click(object sender, EventArgs e)
 {
     try
     {
         AltaMedico ventana = new AltaMedico();
         ventana.ShowDialog();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.ToString());
     }
 }
示例#2
0
 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());
     }
 }