コード例 #1
0
        private void BajaRol_Load(object sender, EventArgs e)
        {
            List <Rol> roles = RepoRol.getInstance().getRolesHabilitados();

            cmbRoles.DataSource    = roles;
            cmbRoles.DisplayMember = "Nombre";
        }
コード例 #2
0
        private void iniciarComboBox()
        {
            List <Rol> roles = new List <Rol>();

            roles = RepoRol.getInstance().getRoles();
            cmbRoles.DataSource    = roles;
            cmbRoles.DisplayMember = "Nombre";
        }