private void ShowRegimen() { using (nr) { dgvregimen.DataSource = nr.Getall(); lbltotal.Text = "Total registro: " + dgvregimen.Rows.Count; } }
private void Mostrar_regimenpensionario() { using (NRegimen nre = new NRegimen()) { cbore_pensionario.DataSource = nre.Getall(); cbore_pensionario.DisplayMember = "Descripcion"; cbore_pensionario.ValueMember = "Codigo_Regimen"; } }