Example #1
0
 private void CargarContrato()
 {
     try
     {
         CboContrato.DataSource    = NContrato.Listar();
         CboContrato.ValueMember   = "id_empresa";
         CboContrato.DisplayMember = "nombre";
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message + ex.StackTrace);
     }
 }
Example #2
0
 private void Listar()
 {
     try
     {
         DgvListado.DataSource = NContrato.Listar();
         //this.Formato();
         this.Limpiar();
         LblTotal.Text = "Total Registros: " + Convert.ToString(DgvListado.Rows.Count);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message + ex.StackTrace);
     }
 }