代码

 1:SelectedLot = SelectedLotRow != null ? DataTableEntityTranslator.TranslateToList<Lot>(SelectedLotRow.Row)[0] : null;

2:C# 中using的用法

(在工程中从一个view到另一个view需要传递参数,第二个popup出来的view接受参数)   
if (input != null && input is LotPropertyParameter)
{
var pIn = input as LotPropertyParameter;

LotId = pIn.CurrentLotId;

using (new BusyIndicator())

{
GetLotDetail();

}

posted @ 2016-02-17 14:56  sunshinelym  阅读(126)  评论(0编辑  收藏  举报