private void SearchRoutes(object sender, EventArgs e) { SearcherOfRoutes searcher = new SearcherOfRoutes(_repository); FoundRoute foundRoute = searcher.SearchRoutesInManyPlaces(); _travellingSalesmanGui.UpdateTextBoxesAfterSearching(foundRoute.BestTotalLengthOfRoute, foundRoute.NumberOfRoutes); Writer.WriteInformationsAboutFoundRoute(foundRoute, _filePath); }
public void RunProcesses(string path) { Reader reader = new Reader(); string[] contentOfFile = reader.ReadCities(path); if (contentOfFile != null) { _repository.PrepareData(contentOfFile); SearcherOfRoutes searcher = new SearcherOfRoutes(_repository); FoundRoute foundRoute = searcher.SearchRoutesInManyPlaces(); Writer.WriteInformationsAboutFoundRoute(foundRoute, path); } }