예제 #1
0
 private void DeregisterStart()
 {
     if (start != null)
     {
         start.Start.BackColor = Color.Khaki;
     }
     start = null;
 }
예제 #2
0
 private void DeregisterEnd()
 {
     if (end != null)
     {
         end.End.BackColor = Color.Khaki;
     }
     end = null;
 }
예제 #3
0
 public void RegisterEnd(TreeNodeControl c)
 {
     DeregisterEnd();
     if (start == c)
     {
         return;
     }
     c.End.BackColor = Color.Red;
     end             = c;
     if (start != null)
     {
         CreateEdge();
         DeregisterStart();
         DeregisterEnd();
         start = end = null;
     }
 }