Exemple #1
0
        private void frmChon_De_On_Load(object sender, EventArgs e)
        {
            cbb_MonHoc.Items.Clear();
            cbb_DoKho.Items.Clear();
            cbb_Khoi.Items.Clear();


            foreach (var item in BUS_De_Thi.Danh_Sach_do_Kho())
            {
                cbb_DoKho.Items.Add(item);
            }


            foreach (var item in BUS_De_Thi.DanhSach_Mon())
            {
                cbb_MonHoc.Items.Add(item);
            }

            foreach (var item in BUS_De_Thi.Danh_Sach_Khoi())
            {
                cbb_Khoi.Items.Add(item);
            }

            cbb_Khoi.SelectedIndex   = 0;
            cbb_MonHoc.SelectedIndex = 0;
            cbb_DoKho.SelectedIndex  = 0;
        }
 //Lấy Mã Đề Thi
 private void cbb_Ky_Thi_TextChanged(object sender, EventArgs e)
 {
     cbb_Mon.DataSource = BUS_De_Thi.DanhSach_Mon(cbb_Ky_Thi.Text);
 }