Example #1
0
 public void Listar()
 {
     try
     {
         PlanesLogic pl = new PlanesLogic();
         dgvSelectPlanes.DataSource = pl.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_plan.DataPropertyName           = "ID";
     desc_plan.DataPropertyName         = "DescPlan";
     desc_especialidad.DataPropertyName = "DescEspecialidad";
 }
Example #2
0
        public void Listar()
        {
            PlanesLogic pl = new PlanesLogic();

            this.dgvPlanes.DataSource = pl.GetAll();
        }
Example #3
0
 private void LoadGrid()
 {
     this.gridView.DataSource = Logic.GetAll();
     this.gridView.DataBind();
 }