private void btnDropCourse_Click(object sender, EventArgs e)
        {
            DropCourseInterface drop_course_interface = new DropCourseInterface();

            drop_course_interface.ShowDialog();

            txtCourseList.Text = convertCourseListToString(
                ViewCourseController.getCurrentCourses()
                );
        }
        private void updateCourseSelector()
        {
            List <Course> course_list = ViewCourseController.getCurrentCourses();

            cbbCourseSelector.DataSource = course_list;
            if (course_list.Count > 0)
            {
                btnDropCourse.Enabled           = true;
                cbbCourseSelector.DisplayMember = "course_designation";
                cbbCourseSelector.ValueMember   = "course_designation";
            }
            else
            {
                btnDropCourse.Enabled  = false;
                cbbCourseSelector.Text = "No course found";
            }
        }
        public ViewCourseInterface()
        {
            InitializeComponent();


            if (Member.membership_type == "student")
            {
                btnDropCourse.Visible      = true;
                btnViewEnrollement.Visible = false;
                cbbCourseSelector.Visible  = false;
            }
            else if (Member.membership_type == "faculty")
            {
                btnDropCourse.Visible      = false;
                btnViewEnrollement.Visible = true;
                cbbCourseSelector.Visible  = true;
                updateCourseSelector();
            }

            txtCourseList.Text = convertCourseListToString(
                ViewCourseController.getCurrentCourses()
                );
        }