private void btnAddCurriculum_Click(object sender, EventArgs e)
        {
            frmAddCurriculum frm = new frmAddCurriculum();

            frm.DepartmentID = Convert.ToInt32(this.cboDepartments.SelectedValue);
            frm.IsUpdating   = false;
            frm.ShowDialog();

            //Keeps the curremtSelect
            if (curriculumBindingSource.Count > 0)
            {
                int _CurrentIndex        = 0;
                int _CurrentCurriculumID = ((Curriculum)(curriculumBindingSource.Current)).CurriculumID;
                this.refreshDepartmentCurriculums();
                foreach (Curriculum cur in curriculumBindingSource.List)
                {
                    if (cur.CurriculumID == _CurrentCurriculumID)
                    {
                        curriculumBindingSource.Position = _CurrentIndex;
                        break;
                    }
                    _CurrentIndex++;
                }
            }
            else
            {
                this.refreshDepartmentCurriculums();
            }
        }
        private void btnUpdateCurriculum_Click(object sender, EventArgs e)
        {
            frmAddCurriculum frm = new frmAddCurriculum();

            frm.DepartmentID = Convert.ToInt32(this.cboDepartments.SelectedValue);
            Curriculum CurriculumObj = ((Curriculum)(curriculumBindingSource.Current));

            frm.CurriculumName = CurriculumObj.CurriculumName;
            frm.CurriculumID   = CurriculumObj.CurriculumID;
            frm.CostingModelID = CurriculumObj.CostingModelID;
            frm.IsSquenced     = CurriculumObj.CurriculumIsSequenced;
            frm.IsUpdating     = true;
            frm.ShowDialog();
            this.refreshDepartmentCurriculums();
            this.refreshCurriculumCourseListToBePrioritised();
        }