コード例 #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 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();
        }
コード例 #3
0
 //  Save student
 public static void addStudent(Student s)
 {
     users.Add(s.getName(), s);
 }