Create a WPF Collections app:

  • The App will read, insert, update, and delete for each item of data. Use LINQ to select your data. Your app should come preloaded with 5 pieces of data for each collection.
  • Start a WPF by loading a home window with multiple buttons, each button should open new window with its own collection (Use Dictionaries to store collection data) to display each collection's data. Allow for textboxes to insert/update/delete data for that collection.
  • Show a message box with an error message for incorrect type (Provide adequate validations).

Create a menu bar (top menu, or "file" menu) in the home window with:

  • File (New, Save, Quit - quit will be the only working button to actually quit the application).
  • Edit (Insert, Update, Delete - all will work to do that operation on the window that is opened on the item selected in the ListBox).
  • Show a message box with an error message if nothing is selected or there are empty text boxes.
  • Show a message box if the "foreign key" does not exist (see foreign key comment in the Object Collection slides).
  • Help (launches new Window that serves as an about page).

Note:

  • All windows should not be the default grey colour but instead should be dressed up.
  • You should have a message box asking the user to confirm quitting the application.
  • You should have a message box asking the user to confirm if they wish to delete or update the data for all collections.

Object information for a collection:

1. Create a C# class called Person containing

  • ID (int)
  • Name (string)
  • Address (string)
  • Email (string)
  • Age (int)
  • Birthday (string)

Create a List to store a collection of these objects.

2. Create a C# class called SportsTeam containing

  • ID (int)
  • personID (int - should be id of person from object collection 1, i.e. Think of it like a "foreign key" in databases) (Hint: Inheritance)
  • Sports team (string)
  • City (string)

Create a List to store a collection of these objects.

3. Create a C# class called Personality containing

  • ID (int)
  • personID (int - should be id of person from object collection 1, i.e. Think of it like a "foreign key" in databases)
  • Shoe size (int)
  • Favourite movie (string)
  • Favourite actor (string)

Create a List to store a collection of these objects.

4. Create a C# class called Education containing

  • ID (int)
  • personID (int - should be id of person from object collection 1, i.e. Think of it like a "foreign key" in databases)
  • Course Name (string)
  • Course grade (double)
  • Comments (string)

Create a List to store a collection of these objects.

Following a figure showing the layout: see image.

Note:

  • Adequate validations and error messages should be displayed.
  • Format of code should be neat clean with proper indentation, which makes it easy to read and understand.
Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.