// Main constructor that initializes everything except window public Algorithm(CitiesLocations _citiesLocations, CitiesConnections _citiesConnectios, City _startCity, City _finalCity, Alg_Speed _algSpeed, Heuristic _algHeuristic, ref GraphLayoutCity _graphLayout, ref TextBox _textBoxLog, ResourceDictionary _resourceDictionary, GraphManager _graphManager) { citiesLocations = _citiesLocations; citiesConnecitons = _citiesConnectios; StartCity = _startCity; FinalCity = _finalCity; AlgSpeed = _algSpeed; AlgHeuristic = _algHeuristic; graphLayout = _graphLayout; textBoxLog = _textBoxLog; resourceDictionary = _resourceDictionary; IsRunning = false; Window = null; CanContinue = false; graphManager = _graphManager; }
public LogicManager(MainWindow _window) { graphToVisualize = null; citiesLocations = null; citiesConnections = null; defaultCitiesLocations = new CitiesLocations(); defaultCitiesConnections = new CitiesConnections(); algCitiesLocations = new CitiesLocations(); startCity = null; finalCity = null; algSpeed = Alg_Speed.Fast; algHeuristic = Heuristic.Distance; resources = _window.Resources; window = _window; graphManager = new GraphManager(window); algorithm = null; algThread = null; IsRunningAlg = false; }