private void BajaRol_Load(object sender, EventArgs e) { List <Rol> roles = RepoRol.getInstance().getRolesHabilitados(); cmbRoles.DataSource = roles; cmbRoles.DisplayMember = "Nombre"; }
private void iniciarComboBox() { List <Rol> roles = new List <Rol>(); roles = RepoRol.getInstance().getRoles(); cmbRoles.DataSource = roles; cmbRoles.DisplayMember = "Nombre"; }