Пример #1
0
 //METODO MOSTRAR
 private void ShowCargo()
 {
     using (nc)
     {
         dgvcargo.DataSource = nc.Getall();
         TotalDatos();
     }
 }
Пример #2
0
 private void Mostrar_cargo()
 {
     using (Ncargo nca = new Ncargo())
     {
         cbocargo.DataSource    = nca.Getall();
         cbocargo.DisplayMember = "nombre_cargo";
         cbocargo.ValueMember   = "idcargo";
     }
 }