public void SelectStart(int x, int y) { StartNode = ListOfNodes.FirstOrDefault(node => node.X == x && node.Y == y); }
public void SelectEnd(int x, int y) { EndNode = ListOfNodes.FirstOrDefault(node => node.X == x && node.Y == y); }