public static void ResetTimer() { if (_waypointTimer.Running) { _waypointTimer.Stop(); _waypointTimer = new WaypointDistanceTimer(); _waypointTimer.Start(); } else { _waypointTimer = new WaypointDistanceTimer(); _waypointTimer.Stop(); } }
public static void SetControls(ListBox waypointList) { _waypointList = waypointList; _waypointTimer = new WaypointDistanceTimer(); _waypointTimer.Stop(); }