// No-arg Constructor public MainGUI() { // Instantiate GUIs newStudentGUI = new NewStudentGUI(); currStudentGUI = new CurrentStudentGUI(); // Show MainGUI InitializeComponent(); }
// generateNewStudentAdvice() public void generateNewStudentAdvice(string degree, NewStudentGUI gui) { // Variables List <string> rawCoursesInfo = knowledgeBase.retrieveAssociatedCourses(degree); List <string> courseCodes = new List <string>(); List <string> courseTitles = new List <string>(); // Add course titles and course codes foreach (string rawCourseInfo in rawCoursesInfo) { courseCodes.Add(rawCourseInfo.Substring(0, 8)); courseTitles.Add(rawCourseInfo.Substring(11)); } gui.giveNewStudentAdvice(degree, courseCodes, courseTitles, explanationSystem.generateNewStudentExplanation(degree)); }