Esempio n. 1
0
        private void btnBuscarId_Click(object sender, EventArgs e)
        {
            this.lstId.Items.Clear();

            try
            {
                Persona persona = PersonaDAO.LeerPorId(Convert.ToInt32(txtId.Text));

                this.lstId.Items.Add(persona);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }