CIS234N

C# Programming

 

Part 6 Assignment

 

 

 

There are two projects to this assignment. Please zip each project separately and upload both of them to the assignment box slot.

 

Exercises

 

1. Change the TextFileExample in the IO folder from a console application to a Windows Forms Application. Use any method you wish to get a line of input from the user, such as a textbox or listbox and write that line out to a textfile.  Write out as many lines as the user wishes to enter until they decide to stop and save the file. Also, be able to read back the file into the program. Once again, choose any method you wish to display the contents of  the file.

Use the SaveFileDialog (see the example) to allow the user to choose the name and location of the file to save.

 

 

2. Change the SerializeToXML example from a console to a windows application. Once again, I'll leave it up to you how you create the form.

Instead of using the OrderedItem class that is in the sample, create your own class, whatever you want and use it to create an object to serialize.