The Program Is As Follows

The Program Is As Follows

Design of the User Interface

On the main form there is a file menu with the following menu items in it:

1 Open file

2 Save File

3 Delete Race

4 Print File

5 Exit

The Save file menu button should save all data in the two datagridView 3 and 4 using a save file dialog. The Open file menu button should open any saved files, using an Open file Dialog.

All files should be saved to the DeskTop in a folder.

The Delete Race Menu Button deletes all data in all components on both forms, if the user does not delete the races before exiting the application a message box comes up giving him the option to delete the races or save them to file.

The Print File Button should enable printing of the saved files.

The Exit button should enable leaving the application

There should be two vertical lines of textboxes numbered as shown.

Textbox1Textbox11

Textbox2Textbox12

Textbox3Textbox13

Textbox4Textbox14

Textbox5Textbox15

Textbox6Textbox16

Textbox7Textbox17

Textbox8Textbox18

Textbox9Textbox19

Textbox10Textbox20

The user will enter numbers into the first line of textboxes numbered (1 to 10).

Example: 1123156 (to be entered into textboxes (1 to 10)

These are then matched up to the following amounts and the total is then shown in the second line of textboxes numbered (11 to 20).

1 gives 10 points

2 gives 8 points

3 gives 6 points

4 gives 4 points

5 gives 2 points

Above 5 gives 0 points

The points are then totaled and the total amount of points are shown in the second line of textboxes numbered (11 to 20).

There should be a button to run the process at the bottom of the form.

As an Example say the user enters the numbers 123156 the total would be 36 and this would be entered into the second line textbox accordingly.

There are two more vertical lines of textboxes numbered as follows:

80 down to 63 First Line of Textboxes 18 in all.

126 down to 109 Second Line of Textboxes 18 in all.

The user enters data into the first line of textboxes in the form of an integer, and this integer is matched to the following list.

NumbersPoints

1-210

3-69

7-108

11-147

15-216

22-285

29-354

36-503

51-1002

101+1

So for example if the user enters a number between 11 and 14 the second corresponding textbox will show a 7.

Another example is if the user should enter a number greater than 101 the corresponding textbox in the second line of textboxes would show a 1.

There should be a button at the top of the form to enter the points into the second line of textboxes, once all numbers are entered into the first line of textboxes.

On Another Form

There should be two datagridViews one under the other, The top one is datagridView 3 and the bottom one is datagridView 4.

At the top of the form is a toolbar with 3 toolbar buttons on it, text of the buttons are

1 Open file

2 Save File

3 Print File

4 Delete File

5 Exit

The Save file button should save all data in the two datagridView 3 and 4 using a save file dialog. The Open file button should open any saved files, using an Open file Dialog.

All files should be saved to the DeskTop in a folder.

The Print File Button should enable printing of the saved files.

The delete File enables deleting of all data on all form’s components

Exit, enables exiting the application with saving or without saving.

Note: If the user does not delete all data before exiting the application he gets prompted to save the data into a text file for the textboxes and a CSV file for the datagridViews.

So there are two ways of saving printing and opening a file as well as exiting the application.

1 on the main form file menu

2 on the datagridView form toolbar