public TcReportPoint3D GetPoint(Double prmX, Double prmY) { Double rx = Math.Round(prmX, 2); Double ry = Math.Round(prmY, 2); if (Accepted.Count > 0) { TcReportPoint3D foundPoint = Accepted.FirstOrDefault(iter => iter.X == rx && iter.Y == ry); if (foundPoint != null) { return(foundPoint); } } if (NotCovered.Count > 0) { TcReportPoint3D foundPoint = NotCovered.FirstOrDefault(iter => iter.X == rx && iter.Y == ry); if (foundPoint != null) { return(foundPoint); } } if (NotFlat.Count > 0) { TcReportPoint3D foundPoint = NotFlat.FirstOrDefault(iter => iter.X == rx && iter.Y == ry); if (foundPoint != null) { return(foundPoint); } } if (OutOfSigma.Count > 0) { TcReportPoint3D foundPoint = OutOfSigma.FirstOrDefault(iter => iter.X == rx && iter.Y == ry); if (foundPoint != null) { return(foundPoint); } } return(null); }