private void updateView(ProgramCourses info) { ProgramsController programsController = new ProgramsController(); CoursesController coursesController = new CoursesController(); var programid = info.ProgramID; var program = programsController.Programs_FindByProgramID(programid); var courseid = info.CourseID; var course = coursesController.Courses_GetCourse(courseid); lbl_programid.Text = programid.ToString(); txt_courseid.Text = courseid; lbl_programname.Text = program.ProgramName; txt_coursename.Text = course.CourseName; txt_credit.Text = course.Credits.ToString(); txt_totalhours.Text = course.TotalHours.ToString(); txt_classroomtype.Text = course.ClassroomType.ToString(); txt_term.Text = course.Term.ToString(); txt_tuition.Text = course.Tuition.ToString(); txt_description.Text = course.Description; }