private void RoutingThread(object _plotter) { RoutePlotter p = (RoutePlotter)_plotter; routeSystems = null; // so its null until route interative finishes routeSystems = p.RouteIterative(AppendData); this.BeginInvoke(new Action(() => { discoveryform.NewCalculatedRoute(routeSystems); ToggleButtons(true); })); }
private void RoutingThread(object _plotter) { RoutePlotter p = (RoutePlotter)_plotter; routeSystems = null; // so its null until route interative finishes routeSystems = p.RouteIterative(AppendData); this.BeginInvoke(new Action(() => { discoveryform.NewCalculatedRoute(routeSystems); cmd3DMap.Enabled = true; button_Route.Text = "Find Route".Tx(this, "button_Route"); button_Route.Enabled = true; })); }