private void DeregisterStart() { if (start != null) { start.Start.BackColor = Color.Khaki; } start = null; }
private void DeregisterEnd() { if (end != null) { end.End.BackColor = Color.Khaki; } end = null; }
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; } }