public StudentInfoScreen(Student s, string courseCode) { InitializeComponent(); // Update UI with student info this.tbAppNbr.Text = s.getStudentID(); this.tbName.Text = s.getName(); this.tbDob.Text = s.getDob(); this.tbCourseCode.Text = courseCode; this.tbAddress.Text = s.getAddress(); this.tbPhone.Text = s.getPhone(); }
public void createStudent() { s = new Student(appNum, name, address, courseId, dob, phoneNo, password); displayStudent(); }