public void Listar() { PlanLogic pl = new PlanLogic(); try { this.dgvPlanes.DataSource = pl.GetAllWithEspecialidadDescription(); } catch (Exception e) { MessageBox.Show(e.Message, this.Text, MessageBoxButtons.OK, MessageBoxIcon.Error); this.Close(); } }