private void createCheckBox()
        {
            List <Subject> list = tdb.selectSubject_Dat();
            int            i    = 0;

            foreach (Subject l in list)
            {
                checkBox.Add(addCheckBox(l.SubjectID.ToString(), l.SubjectName));
                DataTable dt = tdb.selectTeachSubjectByTeacherId_Dat(TeacherId);
                DataView  dv = new DataView(dt);
                dv.RowFilter = "SubjectCode like '" + l.SubjectCode + "'";
                if (dv.Count > 0)
                {
                    checkBox[i].Checked = true;
                }
                i++;
            }
        }