コード例 #1
0
        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();
        }
コード例 #2
0
        public void createStudent()
        {
            s = new Student(appNum, name, address, courseId, dob, phoneNo, password);

             displayStudent();
        }