可以通过仅将单行代码添加到窗体的 Load 事件并使用 DataSet 填充 DataAdapter 来完成简单的 Windows 应用程序。
You can complete the simple windows application by just adding a single line of code to the Load event of the form to fill the DataAdapter using the DataSet.
如果模型需要定义一个关系(例如,Project需要选中所有的Organization),就需要手工修改页面将这个域添加到窗体上。
If the model requires a relationship to be defined (for example, the Project requires the owning Organization to be selected), you will need to modify the page by hand to add that field to the form.
这种方法需要你手动将一系列适当的控件分区域地添加到窗体中,例如标签和文本框,结果就像Figure 6显示的那样。
This approach requires you to add fields to the form manually as a set of appropriate controls, such as Labels and TextBoxes, resulting in something that looks like Figure 6.
应用推荐