Application Preferences And Resource Files
Hi,
I am needing to create Global Application Preferences that can be set by an Administrator. Currently,I am using a Resource.resx file for storage. I do not know what the standard approach is. I suppose I could use a database table as well.
The .NET Framework has great classes for reading the files, it's the editing that I am having problems with. I am opening the resx file as an XmlDocument, locating the preferences with XPath, editing the nodes and then re-saving the file. This is not exactly fast. I have tried using the ResourceWriter.AddResource method, but it corrupts the resx file.
Does anyone have any suggestions on setting up Global Application Preferences?
Thanks
|