private void ShowInfo(int Id) { Eva.BLL.Item bll=new Eva.BLL.Item(); Eva.Model.Item model=bll.GetModel(Id); this.lblId.Text=model.Id.ToString(); this.lblName.Text=model.Name; this.lblValue.Text=model.Value.ToString(); }
public static string GetItemName(int itemId) { var bll = new Eva.BLL.Item(); return bll.GetModel(itemId).Name; }