private void LoadFormCauHoiHS() { if (loai == "ThiThu") { dsCauHoi = hocSinhBUS.LayDeTheoMaDe(maDeDuocChon); string cauSo = "Câu số " + dsCauHoi[next].MaCauHoi.ToString() + ":"; lbCauSo.Text = cauSo; lbNoiDung.Text = dsCauHoi[next].NoiDung; if (next == 0) { btnCauTruoc.Enabled = false; } else { btnCauTruoc.Enabled = true; } if (next >= 14) { btnCauSau.Enabled = false; } else { btnCauSau.Enabled = true; } if (dapAn[next] != "") { if (dapAn[next] == "A") { rdbtnCauA.Checked = true; } else if (dapAn[next] == "B") { rdbtnCauB.Checked = true; } else if (dapAn[next] == "C") { rdbtnCauC.Checked = true; } else { rdbtnCauD.Checked = true; } } else { rdbtnCauA.Checked = false; rdbtnCauB.Checked = false; rdbtnCauC.Checked = false; rdbtnCauD.Checked = false; } rdbtnCauA.Text = dsCauHoi[next].CauA; rdbtnCauB.Text = dsCauHoi[next].CauB; rdbtnCauC.Text = dsCauHoi[next].CauC; rdbtnCauD.Text = dsCauHoi[next].CauD; } if (loai == "Thi") { dsCauHoiThi = hocSinhBUS.FindDeVaCauHoiTrongKyThi(hocSinhLogin.MaHocSinh); string cauSo = "Câu số " + dsCauHoiThi[next].MaCauHoi.ToString() + ":"; lbCauSo.Text = cauSo; lbNoiDung.Text = dsCauHoiThi[next].NoiDung; if (next == 0) { btnCauTruoc.Enabled = false; } else { btnCauTruoc.Enabled = true; } if (next >= 14) { btnCauSau.Enabled = false; } else { btnCauSau.Enabled = true; } if (dapAn[next] != "") { if (dapAn[next] == "A") { rdbtnCauA.Checked = true; } else if (dapAn[next] == "B") { rdbtnCauB.Checked = true; } else if (dapAn[next] == "C") { rdbtnCauC.Checked = true; } else { rdbtnCauD.Checked = true; } } else { rdbtnCauA.Checked = false; rdbtnCauB.Checked = false; rdbtnCauC.Checked = false; rdbtnCauD.Checked = false; } rdbtnCauA.Text = "A. " + dsCauHoiThi[next].CauA; rdbtnCauB.Text = "B. " + dsCauHoiThi[next].CauB; rdbtnCauC.Text = "C. " + dsCauHoiThi[next].CauC; rdbtnCauD.Text = "D. " + dsCauHoiThi[next].CauD; } }