[null, {"document_url": "https://www.wiseowl.co.uk/c-sharp/exercises/standard/data-structures/4398/", "unformatted_src": "/Images/sundry/five-star2.png", "src": "https://www.wiseowl.co.uk/Images/sundry/five-star2.png", "formatted_filename": "five star", "alt_text": "Five star reviews"}, null, {"document_url": "https://www.wiseowl.co.uk/c-sharp/exercises/standard/data-structures/4398/", "unformatted_src": "../../../../../files/exercise-images/e4398/i3.jpg", "src": "https://www.wiseowl.co.uk/files/exercise-images/e4398/i3.jpg", "alt_text": "Task list"}, null, {"document_url": "https://www.wiseowl.co.uk/c-sharp/exercises/standard/data-structures/4398/", "unformatted_src": "../../../../../files/exercise-images/e4398/i4.jpg", "src": "https://www.wiseowl.co.uk/files/exercise-images/e4398/i4.jpg", "alt_text": "To-do list"}, null]
This page has 0 threads   |  Add post 




Visual C# | Data structures exercise | Create a to-list based on a task class

Make this the default form in Program.cs. When you run your application, you should see a form like this: You can use this form to add a task.

Create a class called Task to contain each task (it'll need to have two properties - one for the task description, and one for the date when it should be completed).

Add code to your form so that:

Here's what the second button might show: Your code should create a message listing all of the tasks, and show this on screen.

If you've got this working and still got extra time, you could write your to-do list to a text file, so you don't lose it every time you shut the form down ...

This page has 0 threads Add post