コード例 #1
0
        private void ThemLop_Load(object sender, EventArgs e)
        {
            List <string> khoaHocs = Lbus.GetDanhSachKhoaHoc();

            khoaHocs.Add("Thêm khoá học");
            comboBoxKhoaHoc.DataSource = khoaHocs;
            hocSinhs = HSbus.XemTatCaHS();
            dataGridViewDS_HS.DataSource = null;
            dataGridViewDS_HS.DataSource = hocSinhs;
            AddCotCheckbox();
            ReName();
            comboBoxGVCN.DataSource = GVbus.XemDanhSachTenGV();
        }
コード例 #2
0
 private void DanhSachLop_Load(object sender, EventArgs e)
 {
     lops = bus.GetDanhSachLop();
     dataGridViewDS_Lop.DataSource = lops;
     textBoxtenGVCN.Text           = bus.GetTenGiaoVien(dataGridViewDS_Lop.CurrentRow.Cells[0].Value.ToString());
     comboBoxKhoaHoc.DataSource    = bus.GetDanhSachKhoaHoc();
 }
コード例 #3
0
 private void ThongTinLop_Load(object sender, EventArgs e)
 {
     comboBoxKhoaHoc.DataSource = Lbus.GetDanhSachKhoaHoc();
     hocSinhs = HSbus.XemTatCaHSLop(this.ID);
     dataGridViewDS_HS.DataSource = hocSinhs;
     comboBoxGVCN.DataSource      = GVbus.XemDanhSachTenGV();
     textBoxLop.Text = Lbus.GetTenLop(ID);
 }
コード例 #4
0
        private void DanhSachLop_Load(object sender, EventArgs e)
        {
            lops = bus.GetDanhSachLop();
            dataGridViewDS_Lop.DataSource = lops;
            ReName();
            textBoxtenGVCN.Text = bus.GetTenGiaoVien(dataGridViewDS_Lop.CurrentRow.Cells[0].Value.ToString());
            List <string> danhSachKhoaHoc = bus.GetDanhSachKhoaHoc();

            danhSachKhoaHoc.Insert(0, "None");
            comboBoxKhoaHoc.DataSource = danhSachKhoaHoc;
        }
コード例 #5
0
ファイル: ThongTinLop.cs プロジェクト: 9tee/TTN_QuanLyHSGV
        private void ThongTinLop_Load(object sender, EventArgs e)
        {
            List <string> khs = Lbus.GetDanhSachKhoaHoc();

            comboBoxKhoaHoc.DataSource   = khs;
            comboBoxKhoaHoc.SelectedItem = Lbus.GetKhoaHoc(ID);
            hocSinhs = HSbus.XemTatCaHSLop(this.ID);
            dataGridViewDS_HS.DataSource = hocSinhs;
            ReName();
            List <string> gvs = GVbus.XemDanhSachTenGV();

            comboBoxGVCN.DataSource   = gvs;
            textBoxLop.Text           = Lbus.GetTenLop(ID);
            comboBoxGVCN.SelectedItem = gvs.FirstOrDefault(x => x.Contains(tenGV));
        }
コード例 #6
0
 private void ThemLop_Load(object sender, EventArgs e)
 {
     comboBoxKhoaHoc.DataSource = bus.GetDanhSachKhoaHoc();
 }