المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : How to Load data into user settings



C# Programming
04-30-2009, 02:00 AM
Firstly this is NOT a duplicate thread. I still need an answer to my other thread (http://www.codeproject.com/script/Forums/View.aspx?fid=1649&msg=3021875)[^ (http://www.codeproject.com/script/Forums/View.aspx?fid=1649&msg=3021875)]although they are similar this is a different question (my other question is from a developers usage.. i.e. Re-Build and over-write user settings. This is from End-User percpective)

I would like to be able to load data into the user settings or override them programically from someone else's settings. My application has numerous settings that the user can modify. However, if they are changed they will likely want to share out their changes to other users of the applications.

So essentially I want to be able to do something like this (in different places in the code)

Properties.Settings.Default.Load(filePath) (I do not see anything resembling a load from file)

Properties.Settings.Default.Save(filePath) (Save does not take a path)

I do not expect the solution will be this easy as I already dug and can not find anything like that (but it gets my point across).