public DiemCuaSVTheoDanhSach()
        {
            InitializeComponent();
            BangDiemTheoDS bd = new BangDiemTheoDS(db.DiemCuaSinhViens.ToList());

            flowLayoutPanelDiemTheoDS.Controls.Add(bd);
        }
        public DiemCuaSVTheoDanhSach(string mssv, string hoTen)
        {
            InitializeComponent();
            this.mssv = mssv;

            List <DiemCuaSinhVien> nh = db.DiemCuaSinhViens.Where
                                            (thongTin => thongTin.MSSV == mssv).GroupBy(x => x.MaHocPhan).Select(y => y.OrderByDescending(z => z.Diem).FirstOrDefault()).ToList();

            if (nh.Count > 0)
            {
                BangDiemTheoDS x = new BangDiemTheoDS(nh);
                flowLayoutPanelDiemTheoDS.Controls.Add(x);
            }

            labelTenSinhVien.Text  = "Tên sinh viên: " + hoTen;
            labelMaSoSinhVien.Text = "[Mã số sinh viên: " + mssv + "]";

            TinhTrungBinhChungToanKhoa();
            TinhTrungBinhTichLuyToanKhoa();
            TinhSTCBatBuocTichLuy();
            TinhSTCTuChonTichLuy();
            XepLoaiHocLuc();
        }