且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

等待用户输入,然后odbcdatareader再次读取

更新时间:2023-11-17 23:17:52

您必须将此整体方法分解为较小的步骤,然后将其分解为自己的方法.您需要开始根据状态"进行思考.您可以在用户操作时维护表单或应用程序的状态.如果他们在表单的控件中添加值或给您其他输入,则应该触发表单或应用程序其他部分的更新,以便用户可以对其进行操作.

由于要做家庭作业这件事很累,所以我不能做更多的事情了.如果有人给您一个直接的答案,那么他们就不会帮您任何忙.
You have to break this monolithic method down into smaller steps and break those out into their own methods. You''ll need to start thinking in terms of "state". You maintain the state of a form or application while the user manipulates it. If they put a value in a control on the form or give you some other input, that should trigger an update of some other part of the form or application so the user can manipulate that.

I can''t go into much more than that, since this reeks of a homework assignment. If anyone gives you an outright answer, they''re not doing you any favors.