Ensure the Form1.cs is open in design mode.
确保以设计模式打开 Form1.cs。
In the Test project, select the default form (Form1).
在Test项目中,选择默认表单(Form1)。
We added code to Form1 to access the business layer. Here's the code in the BusinessLayerProxy to request and execute the business logic.
我们在Form 1中添加一些代码来访问业务层,以下便是BusinessLayerProxy中的代码,来请求和执行业务逻辑。
The "glue code" we need to write for Form1 is just a line in the message handler to request the business layer execute the appropriate logic.
我门需要在消息处理中为FORM1写一行“粘合代码”,请求业务层执行适当的逻辑。
In Version 7.0 of Rational Application Developer, you must fully qualify the ID of the Panel-Group box (rather than "box1" use "form1: box1").
在RationalApplication Developer的7.0版本中,您必需完全限定Panel - Group box的ID(不要使用“box1 ”,而使用“ form 1: box1 ”)。
There are three message handlers (the ..._Click() operations) in Form1 that will all use the association, "theBusinessLayer", to access business logic.
在FORM1中有3个消息操作(..._Click()),都将使用关联“theBusinessLayer”来访问业务逻辑。
For example, if the ProgressBar with an id of bar1 is inside of a form with an id of form1, its client id will be form1: bar, as shown in the previous code snippet (Listing 1).
例如,如果这个ID为bar1的ProgressBar在一个ID为form1的内部,那么它的客户ID将会是form 1:bar,如先前代码片段中显示的那样(列表1)。
The application's main form, "Form1," is in the Presentation layer. Since Form1 is part of the Presentation layer it must access the business layer through its interface (see Figure 4).
应用的主窗体,“Form1”位于表现层,它必须通过其接口访问业务层(如图4)。
The application's main form, "Form1," is in the Presentation layer. Since Form1 is part of the Presentation layer it must access the business layer through its interface (see Figure 4).
应用的主窗体,“Form1”位于表现层,它必须通过其接口访问业务层(如图4)。
应用推荐