コード例 #1
0
        private AirportManager(AppWindow handleAppWindow)
        {
            this.handleAppWindow = handleAppWindow;

            runwayList      = new List <Runway>();
            pbSelectedPlane = new PictureBox();
            hangar          = new Hangar(handleAppWindow.getPanelSamolotow(), 3, 2);
            airspace        = new Airspace(handleAppWindow.getPanelSamolotowPowietrze(), 4);

            acceptsIncomingPlanes = false;
            assistant             = false;

            incommingPlanes    = new OperationIncommingPlanes();
            automatedAssistant = new OperationAssistant();

            peopleCount = handleAppWindow.getPeopleCount();
            cargoCount  = handleAppWindow.getCargoCount();
            ammoCount   = handleAppWindow.getAmmoCount();

            initPbSelectedPlane();

            runwayList.Add(new Runway(handleAppWindow.getPasStartowy1(), 1));
            runwayList.Add(new Runway(handleAppWindow.getPasStartowy2(), 2));
        }