VB 2010 Express - 查看订单
我当前的项目是编写一个程序,基本上是一家披萨公司的收银机。
用户输入披萨以及配料、饮料和配菜。
我想在用户决定结帐时添加“查看订单表”。该表格将弹出并通知用户他/她订购的所有内容。从那里,用户根据需要对订单进行更改,然后确认并结账。
我想知道是否有人可以给我任何有关如何显示用户订购的所有商品的线索。我确实有用户选择的所有项目的列表。我只是不确定如何以单独的形式在屏幕上干净地显示所有项目。
My current project is to write a program that basically is a cash register for a pizza company.
The user enters the pizza, along with toppings, drinks, and sides.
I want to add a "Review Order Form" for when the user decides to check out. The form will pop up and inform the user of everything he/she has ordered. From there the user makes changes to the order as necessary then confirms and checks out.
I was wondering if anybody could give me any clues on how to display all of the items the user has ordered. I do have lists of all the items selected by the user. I am just unsure on how to display all of the items to the screen cleanly in a separate form.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
基本上,您需要将用户订购的每个项目存储到一个集合中。然后,当您想要查看时,只需迭代集合并输出集合中的每个项目即可。
Basically you will want to store each item the user orders into a collection. Then when you want to review, you just iterate through the collection and output each item in the collection.