public void RemovePath() { while (MarkedNode.Source != null) { MarkedNode.RemoveHighlight(); MarkedNode = MarkedNode.Source as NavigableNode; } MarkedNode = null; }
public void TargetNode(Node node) { if (node != MarkedNode) { if (MarkedNode != null) { MarkedNode.RemoveHighlight(); MarkedNode = null; } if (Contains(node)) { MarkedNode = node as TargetableNode; MarkedNode.Highlight(); } } }