saving application
how to save application state and restore it after reboot in .NET 3.5 (c开发者_StackOverflow中文版#)?
There are many ways to do that. The best way depends on your requirements. Your question sounds like you don't need a centralised / concurrent / redundant / secured / scalable database.
To just store some configuration / data I'd suggest using XML serialization. There are many tutorials for this basic topic, like:
http://www.dotnetjohn.com/articles.aspx?articleid=173
It depends what kind of state you're talking about. If it's just a few values, you could just write them to the app.config or some other XML or text file. If you want to store the actual objects then you might want to look at serialization.
This article seems like a good place to get some basic info about that.
精彩评论