public StationController(
     IStationManager stationManager,
     IStationRepository stationRepository,
     IOperationHandler operationHandler
     )
 {
     _stationManager    = stationManager;
     _stationRepository = stationRepository;
     _operationHandler  = operationHandler;
 }
예제 #2
0
        public AirportManager()
        {
            AManager                   = new AirplaneManager();
            AllPlanesInAirport         = new List <Airplane>();
            AService                   = new AirplaneService();
            SManager                   = new StationManager();
            AllStationsInAirport       = SManager.ListOfAllStations;
            AllFlightsArchiveInAirport = SManager.AllFlightsArchiveInAirport;
            var archivedFlights = AManager.AllArchivedFlights();

            for (int i = 0; i < archivedFlights.Count(); i++)
            {
                AllFlightsArchiveInAirport.Add(archivedFlights[i]);
            }
            AService.Register <Airplane>("GetPlane", AddAirplaneToQueueFromServer);
        }
 public StationCollectionVM(IStationManager stationManager)
 {
     this.stationManager = stationManager;
     Stations            = new ObservableCollection <StationVM>();
     LoadStations();
 }
예제 #4
0
 public AirportManager(IStationManager stationManager) : this()
 {
     SManager = stationManager;
 }
예제 #5
0
 public AirportManager(IAirplaneManager airplaneManager, IStationManager stationManager) : this()
 {
     AManager = airplaneManager;
     SManager = stationManager;
 }
예제 #6
0
 public StationController(IStationManager STATION_MANAGER)
 {
     this.STATION_MANAGER = STATION_MANAGER;
 }