public FrmThemNguoiDung(FrmQuanLyNguoiDung frm, long maND)
        {
            InitializeComponent();
            this.maND               = maND;
            this.frmParent          = frm;
            button1.Text            = "Cập nhật";
            this.Text               = "Cập nhật thông tin người dùng";
            cboLoaiND.DataSource    = LOAINGUOIDUNGBUS.LayDanhSachLoaiNguoiDung();
            cboLoaiND.ValueMember   = "MALOAI";
            cboLoaiND.DisplayMember = "TENLOAIND";

            cboTenBM.DataSource    = BOMONBUS.LayDanhSachBoMon();
            cboTenBM.ValueMember   = "MABM";
            cboTenBM.DisplayMember = "TENBM";

            cboTrangThai.Items.Add("Mở");
            cboTrangThai.Items.Add("Khóa");
            cboTrangThai.SelectedIndex = 0;

            NGUOIDUNGDTO d = NGUOIDUNGBUS.LayNguoiDung(this.maND);

            txtHoTen.Text              = d.HOTEN;
            txtTenDangNhap.Text        = d.TENDANGNHAP;
            cbToanQuyen.Checked        = d.TOANQUYENGV;
            cboLoaiND.SelectedValue    = d.MALOAI;
            cboTenBM.SelectedValue     = d.MABM;
            cboTrangThai.SelectedValue = d.TRANGTHAI;

            cboTenGVQL.DataSource    = NGUOIDUNGBUS.LayDanhSachGiaoVienQuanLy();
            cboTenGVQL.ValueMember   = "MaND";
            cboTenGVQL.DisplayMember = "HoTen";
            cboTenGVQL.SelectedValue = d.MAGVQL;
        }
        public FrmThemNguoiDung(FrmQuanLyNguoiDung frm)
        {
            InitializeComponent();
            this.frmParent          = frm;
            button1.Text            = "Thêm";
            this.Text               = "Thêm người dùng mới";
            cboLoaiND.DataSource    = LOAINGUOIDUNGBUS.LayDanhSachLoaiNguoiDung();
            cboLoaiND.ValueMember   = "MALOAI";
            cboLoaiND.DisplayMember = "TENLOAIND";

            cboTenBM.DataSource    = BOMONBUS.LayDanhSachBoMon();
            cboTenBM.ValueMember   = "MABM";
            cboTenBM.DisplayMember = "TENBM";

            cboTenGVQL.DataSource    = NGUOIDUNGBUS.LayDanhSachGiaoVienQuanLy();
            cboTenGVQL.ValueMember   = "MAND";
            cboTenGVQL.DisplayMember = "HOTEN";

            cboTrangThai.Items.Add("Mở");
            cboTrangThai.Items.Add("Khóa");
            cboTrangThai.SelectedIndex = 0;
        }