在WPF C#中保存/加载数据(VS 2017) [英] Saving/Loading data in WPF C# (VS 2017)

查看:145
本文介绍了在WPF C#中保存/加载数据(VS 2017)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我是初学者,我正在开发一个简单的应用程序,用户可以输入患者姓名和特定人物的一些细节 - 蛋白质摄入量,体重等。

I am a beginner developer, I am working on a simple app where the user can enter patient name and some specifics for that particular person - protein intake, weight etc.


当点击保存按钮时,所有数据都会保存/存储在某个地方(本地),并且会有这些患者的数据库,这样当你想继续工作或编辑某人,你只需点击打开并从数据库中选择一个名称,并且
将存在所有存储的值(蛋白质,重量等)。您可以编辑值,点击保存并保存。然后你可以打开另一个病人并编辑他的值并点击保存,等等。

When clicking on the save button, all the data would be save/stored somewhere (locally) and there would a database of these patients, so that when you want to continue working or editing someone, you would just hit Open and choose a name from the database and all the stored values (protein, weight, etc) will be there. You can the edit the values, hit Save and it is saved. You can then open another patient and edit his values and hit Save, etc


如何以简单的方式实现这一目标? 

How can I achieve this in a simple way? 


非常感谢您的帮助

Thank you very much for any help

推荐答案

你好,你创建了您的项目的数据库?如果是,您可以在这里分享吗?

Hello,have you created the database for your project?and if yes,can you share it here?


这篇关于在WPF C#中保存/加载数据(VS 2017)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆