void ShowSearchColors(GridVisualisation gridvisualisation) { if (gridvisualisation == null) { return; } if (openList != null) { gridvisualisation.ColorNodes(openList.ToList(), openListColor); } if (closedList != null) { gridvisualisation.ColorNodes(closedList, closedListColor); } }
void ShowPathColors(GridVisualisation gridvisualisation) { if (gridvisualisation == null) { return; } if (pathList != null && pathList.Count > 0) { gridvisualisation.ColorNodes(pathList, pathListColor); } }