public CarQueue(int CarsToCreate, int TimeBetweenArrivals, int CarMaxTime, DAL DataAccessLayer, ParkingLotGUI parkingLotGUI) { _dataAccessLayer = DataAccessLayer; _carsToCreate = CarsToCreate; _timeBetweenArrivals = TimeBetweenArrivals; _carMaxTime = CarMaxTime; _parkingLotGUI = parkingLotGUI; }
static void Main(string[] args) { var _path = Path.GetDirectoryName(Application.ExecutablePath) + "\\ParkingLotDB.json"; // should load db from this directory: // .\GitHub\ProjectDreams\I Dream of Parking\I Dream of Parking\I Dream of Parking\bin\Debug if (File.Exists(_path)) { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); var GUI = new ParkingLotGUI(_path, 120); Application.Run(GUI); } else { InitalizeParkingLot(120); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); var GUI = new ParkingLotGUI(_path, 120); Application.Run(GUI); } }