要添加这个定制动作,可以使用如下代码。
这样的代码也可以写成如下的样子。
代码如下面的清单2 所示。
视图代码如下面清单10所示。
输入如下的两行代码。
该代理的代码如下所示。
对应的代码片段如下。
我将使用如下的通用格式来检查每一种代码味道。
I'll use the following general format as we examine each code smell.
进行这项操作的XSL代码如下所示
因此使用该操作的代码如下所示。
在页面的底部,添加一个隐藏的面板控件,代码如下。
At the bottom of the page, add a hidden panel using the following code.
因此上面的示例代码可以用如下两种方式进行修改
The sample code from above can therefore be changed in the following two ways
那么运行此代码时我们将得到如下错误。
要使用轮询,需要对代码进行如下修改。
The following code changes are necessary to use the polling strategy.
您还要提供一个Cancel按钮,其代码如下。
You also want to supply a Cancel button with code as follows.
上面的代码会产生如下结果。
到Source选项卡,添加如下清单1中的代码。
Go to the Source TAB, and then add the code in Listing 1 below.
这一段令人兴奋的代码生成的结果如下所示。
The result generated by this exciting piece of code looks like this.
重构您的原始代码,使其看起来如下所示。
这种情况中,假设同步服务调用的客户端代码如下:this。
In this, if the client code for a synchronous service invocation is like this.
在一个action的accesscontrolhook中调用代码的一个例子如下。
An example of calling code in the access control hook of an action.
生成的XAML代码如下。
处理这种工作的代码如下所示。
打开该文件并且添加用粗体显示的代码,如下所示。
如果运行这段新代码,您应当会看到大量信息,如下所示。
If you run this new code, you should see a great deal more information, as shown below.
首先建立如下所示的代码。
使用该常量的代码如下所示。
完整的代码块如下所示。
使用PEARDB的替代代码如下所示。
该代码如下所示。
应用推荐