16.6. Exercises

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

  2. Advanced exercise: Research the .NET menu components using the FCL doc pages and replace the functionality of the five Buttons at the bottom of the SRS GUI using menu components instead of Buttons.

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

    • 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: ReadStudentData, WriteStudentData, and the Student constructor.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset