public void clear() { StartNode = -1; EndNode = -1; path = new int[] { }; mouseDown = false; CurrentNode = -1; BlockedNodes.Clear(); VisitedNodes.Clear(); NotifyStateChanged(); }