static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); CommunicationRoutesGui gui = new CommunicationRoutesGui(); Repository repository = new Repository(); CommunicationRoutesModel model = new CommunicationRoutesModel(repository); CommunicationRoutesController controller = new CommunicationRoutesController(gui, model); Application.Run(gui); }
public CommunicationRoutesController(ICommunicationRoutesGui communicationRoutesGui, CommunicationRoutesModel communicationRoutesModel) { _communicationRoutesGui = communicationRoutesGui; _communicationRoutesModel = communicationRoutesModel; SetEventHandlers(); SetDelagetes(); SetCurrentDateAndTime(); Thread setBusStopsThread = new Thread(new ThreadStart(SetBusStops)); setBusStopsThread.Name = "Initialize Bus Stops Names"; setBusStopsThread.Start(); _communicationRoutesGui.SaveThread(setBusStopsThread); }