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