In this assignment you are to enhance the Visual Studio .NET C# fast
food restaurant application you created in your last
assignment.You are to add a menu with a "File" menu item that contains
a submenu with the items "Print", "Open", and
"Save". The "Print"menu should itself have a submenu with the items
"Print Preview" and "Print". When the user clicks on
the on the "Print" menu item, the list of meal entrees and prices should
be printed out on the system's default printer. Clicking
on the "Print Preview" menu item should cause the Microsoft "print
preview common dialog box" to start in order to allow
the user to see how the printed output of the two lists will look when
the document is printed. The printed output should look
something like the following:
Richard's Fast Food Restaurant
Steak
$10.75
Fish
8.95
Spaghetti 5.50
Roast Beef 7.25
Pork Chops 8.75
Shrimp
9.95
Hamburger 3.85
Hot Dog
2.00
(Your name, meals, and prices should appear instead of mine.)
If the user clicks the "File/Open" menu item, the Microsoft "open file
common dialog box" should appear and permit the user to
either type in or browse the computer's directory structure and select
a file. The file entered or selected by the user should then
be opened, and its contents should populate the meal entrees combo
box and the list of prices maintained by your program. If
the user clicks on the "Save" menu item, either a Microsoft "save file
common dialog box" or a "open file common dialog box"
should open to once again allow the user to type in or select a file
name to which the current lists of entrees and prices should
be saved.
The following is a screen shot of what should happen when the user clicks on the "File/Print/Print" menu item:
The following is a screen shot showing what the print preview common
dialog box should look like when "File/Print/Print Preview"
is selected from the menu:
The following is a screen shot of what should appear when "File/Open" is selected from the memu:
Finally you should add a "splash screen" that will appear for several
seconds when the user first runs the application, before the
main form comes up. This should contain text and one or more picture
boxes containing images that "advertise" the fast food
restaurant. You can get images from the internet and incorporate them
into picture boxes on the splash screen form, as
explained in class.
For extra credit, include menu items that allow the user to print, preview,
or save the current order and to retrieve an order from
a file by specifying the name of the file (with an open file common
dialog box) that contains all of the order's information. To do
this you will probably need to use serialization for file I/O, to be
discussed in class soon.