Team LiB
Previous Section Next Section

Exercises

  1. Modify the event handling in the MainForm class such that the SSN TextBox is disabled once the user has logged in and then reenabled when the user logs out.

  2. For all of the catch blocks located in the various SRS classes, introduce a MessageBox to report problems

  3. Advanced exercise: Modify the SRS application to provide the user with the capability for setting his or her own password. This will involve

    • Displaying an appropriate error message to the user

    • Adding a Set Password button on the MainForm

    • Popping up a dialog box in response to a click of the Set Password button to request that the user enter the old and new password (consider creating a "clone" of the PasswordForm class)

    • Changing the structure of the Student.dat file to accommodate storing a student's password, which will in turn require changing the following methods of the Student class: ParseData, Persist, and the Student constructor


Team LiB
Previous Section Next Section