简体   繁体   中英

What is the best way to save multiple strings in settings?

I'm writing a client for multiple websites. For these websites, users should be able to save multiple settings, like username, favorite category etc. I want these settings to be saved locally. At first i thought i'd use the usual Properties.Settings, but i want these strings to be in a database of some sort, to keep them ordered. Like so:

Website, User, UserCat, Proxy

Those are all the columns i need, proxy is optional. What is the best way to go about this? I first thought of stringcollections, but the coding is messy and it just doesn't seem like the right way to go.

When my application starts, a user can select one website, and the app will load the user, usercat and the optional proxy belonging to that website. Whats the best way to handle this? Thanks!

如果您不想将这些设置存储在Properties.Settings中,那么想到的另外两个选项是SQLite- http://sqlite.phxsoftware.com或写入平面文件(.ini或您自己的自定义格式)。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM