Exemplo n.º 1
0
        private void testingCA()
        {
            Account a = Program.getAccount(this.tbUsername.Text);

            if (a != null)
            {
                Student s = Program.getStudent("Elvis Porebski");
                MessageBox.Show(a.getPassword() + " - " + s.getStudentID());
            }
        }
        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();
        }
Exemplo n.º 3
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();
        }