| | |
| | | if (mathCurrentRow <= maxDepth) |
| | | { |
| | | locationInfos = locationInfos.Where(x => x.Row - Convert.ToInt32(Math.Ceiling(x.Row / maxDepth / 2.0)) * maxDepth * 2 <= maxDepth).ToList(); |
| | | if (beRelocation.Row> maxDepth) |
| | | if (beRelocation.Row <= maxDepth) |
| | | { |
| | | locationInfos = locationInfos.Where(x=>x.Row>maxDepth).ToList(); |
| | | locationInfos = locationInfos.Where(x=>x.Row <= maxDepth).ToList(); |
| | | } |
| | | } |
| | | else |
| | | { |
| | | locationInfos = locationInfos.Where(x => x.Row - Convert.ToInt32(Math.Ceiling(x.Row / maxDepth / 2.0)) * maxDepth * 2 > maxDepth).ToList(); |
| | | if (beRelocation.Row <= maxDepth) |
| | | if (beRelocation.Row > maxDepth) |
| | | { |
| | | locationInfos = locationInfos.Where(x => x.Row <= maxDepth).ToList(); |
| | | locationInfos = locationInfos.Where(x => x.Row > maxDepth).ToList(); |
| | | } |
| | | } |
| | | } |