Exemple #1
0
 private void consultarToolStripMenuItem_Click(object sender, EventArgs e)
 {
     try
     {
         String       id       = dataGridView1.CurrentRow.Cells[0].Value.ToString();
         Paciente     paciente = control.consultarPaciente(id);
         FormPaciente fa       = new FormPaciente(paciente);
         fa.FormClosed += new FormClosedEventHandler(form_Closed);
         fa.Show();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }