开发者

creating registry files for POS desktop application using C# WPF

I'm developing a POS standalone Desktop applic开发者_StackOverflow中文版ation uisng SQL Compact, C# WPF , i want to save the user name and password and some user related settings details in the local desktop .

can i use registry for this purpose ? if so please guide me how to do this.In my recent coding i used binary files (.dat or .bin ) to store the settings information. now iam trying to look for other options. XML is not secured as one can read the file easily.


You Could use the windows registry for the users from the computer, if that user logs in to the computer your pos will auto log that person in to the system.

You can have the pos make a secure backup of the registry as user info is added. Now as far as adding other information to the registry it can be done but not very easy.

As a user logs into the system they become the curent user on a stand alone system. If this will go on a network domain then you should use active directory for your user information.


How to access to Registry using C# you can find here. But, I'm not sure that is such a good idea - you can store data in a file - even in an XML. You can crypt the data - in that case it will not be readable to anyone.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜