0

I am making a mobile application in compact framework 3.5 for windows mobile 6.5.

The architecture of the application is such that after login the user can see main menu from where he see many options. My application has atleast 40 forms and i have buttons on each of my form for navigation. The problem i am facing is that in the task manager i see multiple forms open and this list continuous to grow as we navigate across the forms

I am looking for a simple solution or any tip from friends out there

4

1 回答 1

0

我通常做的是使用包含多个用户控件的单个表单来表示我的工作流程。我只使用表单来包含用户控件,我可以在其他表单中重新使用这些用户控件,但它们并不总是相同的实例。通过这种方式,我可以在完成或取消特定工作流程后处理我的表格。

这是一个例子:

名为 ManualPickingForm 的表单包含以下用户控件: 1. ScanPallet 2. ScanColli 3. ScanPartNumber 4. 显示摘要

在我上面描述的表格中,我可以使用以下工作流程

扫描托盘 -> 扫描 Colli -> 扫描零件编号 -> 显示摘要 -> 完成?否... -> 扫描托盘 -> ...... -> 完成了吗?是 -> 关闭表格

您可以通过容器表单控制 UserControls 的行为

于 2011-01-17T14:30:14.110 回答