public EnrollMentUI()
        {
            InitializeComponent();
            aEnrollBll = new EnrollBLL();

            aCourseBll  = new CourseBLL();
            aStudentBll = new StudentBLL();
            courseComboBox.DisplayMember = "Name";
            List <Course> courses = new List <Course>();

            courses = aCourseBll.GetAllCourseName();
            foreach (Course aCourse in courses)
            {
                courseComboBox.Items.Add(aCourse);
            }

            stdRegNoComboBox.DisplayMember = "RegNo";
            List <Student> students;

            students = aStudentBll.GetAllRegNo();
            foreach (Student aStudent in students)
            {
                stdRegNoComboBox.Items.Add(aStudent);
            }
        }