Esempio n. 1
0
        private void frmLop_Load(object sender, EventArgs e)
        {
            m_NamHocCtrl.HienThiComboBox(cmbNamHoc);
            m_GiaoVienCtrl.HienThiComboBox(cmbGiaoVien);
            m_NamHocCtrl.HienThiDataGridViewComboBoxColumn(colMaNamHoc);
            m_GiaoVienCtrl.HienThiDataGridViewComboBoxColumn(colMaGiaoVien);

            m_LopCtrl.HienThi(dGVLop, txtMaLop, txtTenLop, cmbKhoiLop, cmbNamHoc, iniSiSo, cmbGiaoVien);
        }
Esempio n. 2
0
        private void frmPhanCong_Load(object sender, EventArgs e)
        {
            m_NamHocCtrl.HienThiComboBox(cmbNamHoc);
            m_LopCtrl.HienThiComboBox(cmbLop);
            m_MonHocCtrl.HienThiComboBox(cmbMonHoc);
            m_GiaoVienCtrl.HienThiComboBox(cmbGiaoVien);

            m_NamHocCtrl.HienThiDataGridViewComboBoxColumn(colMaNamHoc);
            m_LopCtrl.HienThiDataGridViewComboBoxColumn(colMaLop);
            m_MonHocCtrl.HienThiDataGridViewComboBoxColumn(colMaMonHoc);
            m_GiaoVienCtrl.HienThiDataGridViewComboBoxColumn(colMaGiaoVien);

            m_PhanCongCtrl.HienThi(dGVPhanCong, bindingNavigatorPhanCong, txtSTT, cmbNamHoc, cmbLop, cmbMonHoc, cmbGiaoVien);
        }
Esempio n. 3
0
        private void simpleButtonThem_Click(object sender, EventArgs e)
        {
            if (_isAddButton)
            {
                _Disable_Control(editing: true);

                DataRow m_Row = m_NguoiDungCtrl.ThemDongMoi();
                m_Row["MaND"]       = "ND" + quyDinh.LaySTT1(dGVNguoiDung.Rows.Count + 1);
                m_Row["MaLoai"]     = "";
                m_Row["MaGiaoVien"] = "";
                m_Row["TenDNhap"]   = "";
                m_Row["MatKhau"]    = "";
                m_NguoiDungCtrl.ThemNguoiDung(m_Row);
                bindingNavigatorNguoiDung.BindingSource.MoveLast();
            }
            else
            {
                _Disable_Control(editing: false);
                m_LoaiNguoiDungCtrl.HienThiDataGridViewComboBoxColumn(colMaLoai);
                m_GiaoVienCtrl.HienThiDataGridViewComboBoxColumn(colMaGiaoVien);
                m_NguoiDungCtrl.HienThi(dGVNguoiDung, bindingNavigatorNguoiDung);
            }
        }