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 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(); }
// Save student public static void addStudent(Student s) { users.Add(s.getName(), s); }