Ejemplo n.º 1
0
        public QuanLyUser()
        {
            InitializeComponent();

            HashSet <string> listphanquyen = new HashSet <string>();

            listphanquyen.Add("Admin");
            listphanquyen.Add("User");
            quanlyuser.MakeComboBoxNoAuto(cbb_PhanQuyen, listphanquyen.ToList());
            cbb_PhanQuyen.SelectedIndex = 0;

            List <DLL.NhanVien> bll_nhanvien = (new BLL_NhanVien()).GetList();
            List <string>       namenv       = new List <string>();

            foreach (DLL.NhanVien mem in bll_nhanvien)
            {
                namenv.Add(mem.TenNV.Trim());
            }
            quanlyuser.MakeComboBoxNoAuto(cb_TenNhanVien, namenv);
            cb_TenNhanVien.SelectedIndex = 0;

            txt_Password.PasswordChar = '*';

            Refresh_Grid();
            ResetThongTin();
        }