Exemplo n.º 1
0
        public void Listar()
        {
            EspecialidadesLogic el = new EspecialidadesLogic();

            this.dgvEspecialidades.DataSource    = el.GetAll();
            id_especialidades.DataPropertyName   = "ID";
            desc_especialidades.DataPropertyName = "desc_especialidad";
        }
 public void ListadoGeneral()
 {
     try
     {
         foreach (Business.Entities.Especialidades u in EspecialidadesNegocio.GetAll())
         {
             MostrarDatos(u);
         }
     }
     catch (Exception Ex)
     {
         NotificarError(Ex);
     }
 }
 public void Listar()
 {
     try
     {
         EspecialidadesLogic el = new EspecialidadesLogic();
         dgvSelectespecialidades.DataSource = el.GetAll();
     }
     catch (Exception Error)
     {
         var msError = "Error message: " + Error.Message;
         if (Error.InnerException != null)
         {
             msError = msError + "\nInner exception: " + Error.InnerException.Message;
         }
         msError = msError + "\nStack trace: " + Error.StackTrace;
         MessageBox.Show(msError, "Error ", MessageBoxButtons.OK, MessageBoxIcon.Error);
         Close();
     }
     id_especialidad.DataPropertyName   = "ID";
     desc_especialidad.DataPropertyName = "desc_especialidad";
 }
        void Listar()
        {
            EspecialidadesLogic el = new EspecialidadesLogic();

            this.dgvEspecialidades.DataSource = el.GetAll();
        }