Example #1
0
        public AssignCourseInfo()
        {
            InitializeComponent();

            AccountRepository aRepo = new AccountRepository();

            this.comboBoxAccount.DataSource = aRepo.GetAccountIdAndNames2("Faculty");

            //CourseRepository cRepo = new CourseRepository();
            //this.comboBoxAssignedCourse.DataSource = cRepo.GetCourseNames2();
            //this.comboBoxSection.DataSource = cRepo.GetALLSections2();

            SemesterRepository sRepo = new SemesterRepository();

            this.comboBoxSemesterName.DataSource = sRepo.GetAllSemesterNames2();

            CourseAssignRepository asRepo = new CourseAssignRepository();

            this.dataGridViewAssignedCourses.DataSource = asRepo.GetAllAssignedCourses2();
        }
Example #2
0
        private void RefreshClicked(object sender, EventArgs e)
        {
            CourseAssignRepository aRepo = new CourseAssignRepository();

            this.dataGridViewAssignedCourses.DataSource = aRepo.GetAllAssignedCourses2();
        }