存储大量问题并在表单中显示c# [英] Storing big amount of questions and displaying in forms c#

查看:52
本文介绍了存储大量问题并在表单中显示c#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对我正在创建的东西有疑问,这是一个应用程序会问问题。我在Visual Studio中使用Windows窗体。我希望应用程序
按顺序显示几个问题,每个主题约20个问题(我有4个主题)。我知道我可以使用源代码中的数组列表,但事情是问题很长(至少有一个长句)是否有一个工具或方式我可以
用来存储和显示这些问题而不用将它们放在源代码中?

解决方案

您可以将所有主题的所有问题存储在数据库中,并使用像向导这样的控件您的用户可以转到下一个/上一个问题。单击"下一个/上一个"按钮时,可以从数据库加载问题。


https://www.codeproject.com/kb/cs/wizarddemo.aspx


https://www.codeproject.com/Articles/1108959/Creating-a-wizard-layout-using-Csharp


I have a question about something that i'm creating at the moment, which is an application that will ask questions. I am using Windows Forms in Visual Studio. I want the application to display in order several questions, about 20 questions for each topic (I have 4 topics). I know I can use the list of arrays inside the source code but the thing is the questions are quite long (at least one long sentence) is there a tool or a way I could use to store and display such questions without putting them in the source code?

解决方案

You can store all questions for all topic in database, and use a control like a wizard where you user can move to Next/Previous question. You can load the question from database when Next/Previous button is clicked.

https://www.codeproject.com/kb/cs/wizarddemo.aspx

https://www.codeproject.com/Articles/1108959/Creating-a-wizard-layout-using-Csharp


这篇关于存储大量问题并在表单中显示c#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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