void GetWaferStatus(BodyList body) { var temp = body.ToArray(); var key = body.ElementAt(0); string res; if (WfNow.WaferCreateTime == key) { res = "GetWaferStatus" + WfNow.WaferCreateTime.AddBar() + WfNow.WaferName.AddBar() + WfStatus.ToString().AddBar(); } else if (WfInfoList.Select(x => x.WaferCreateTime).Contains(key)) { var result = WfInfoList.Where(x => x.WaferCreateTime == key).First(); res = "GetWaferStatus" + key.AddBar() + result.WaferName.AddBar() + "Wait".AddBar(); } else { res = "TBD"; } ProcClient.SendMsg(res.WithCount()); }