Reputation: 41
I am quite new to programming and have been learning as i go. This program is just something i am doing to learn more about what i can do in programming. I am using c# WPF. I have a program that when opens gives you a choice of two buttons, each opens a new window one to add animals to a list and the other to display the objects in the the list. but i can't find a way of saving the objects in the adding window and being able to load them when i restart the program? i have seen some thing about save dialog but i am not sure if this is what i need or?
Upvotes: 0
Views: 2433
Reputation: 134
You need to first decide where to save your results. Database / XML File / Binary file / ??.
It seems like you are practicing C#, try persisting it to a file check this link, has some good example.
Upvotes: 1