private void bindTaskInfo() { lbl_taskName.Text = taskInfo.taskName; lbl_taskExecutor.Text = taskInfo.taskExecutor; lbl_taskClass.Text = CodeCache.getClass().FirstOrDefault(c => c.id == taskInfo.taskClass).codeName; lbl_taskCode.Text = taskInfo.taskCode; lbl_taskType.Text = CodeCache.getType().FirstOrDefault(c => c.id == taskInfo.taskType).codeName; lbl_brandModel.Text = string.Join(Environment.NewLine, from brandCode in CodeCache.getBrand() from modelCode in CodeCache.getModel() from taskModelMap in TaskModelMapCache.getCache() where taskModelMap.taskId == taskInfo.id && taskModelMap.brandId == brandCode.id && taskModelMap.ModelId == modelCode.id select brandCode.codeName + " " + modelCode.codeName); }