コード例 #1
0
        public StationsViewModel(IStationsService service)
        {
            this.StationsService = service;

            // Load();
            // SelectedStation = Stations.Last();
        }
コード例 #2
0
 protected ServiceBaseImpl()
 {
     try
     {
         StationsService = BrokerService.Container.Resolve <IStationsService>();
     }
     catch (Exception ex)
     { }
 }
コード例 #3
0
ファイル: AirportHub.cs プロジェクト: HagaiReiner/Test2
 public AirportHub()
 {
     if (!dbLoaded)
     {
         repository      = dbManager.InitializeDb().Result;
         dbLoaded        = true;
         scheduleManager = new ScheduleManager(repository);
         planesManager   = new PlanesManager(repository);
         stationsManager = new StationsManager(repository, planesManager);
         simulator       = new AirportSimulator(planesManager, scheduleManager);
     }
 }
コード例 #4
0
 public StationsViewModel()
 {
     stationsService = new MockStationsService();
     this.Stations = new ObservableCollection<Station>();
 }
コード例 #5
0
 public DistanceController(IStationsService service)
 {
     this.stationcService = (StationsService)service;
 }
コード例 #6
0
 public StationsApiController(IStationsService stationsService)
 {
     _stationsService = stationsService;
 }
コード例 #7
0
 public StationsViewModel(IRegionsService regionsService, IStationsService stationsService)
 {
     _RegionService = regionsService;
     _Service       = stationsService;
 }
コード例 #8
0
 public MockRegionsService(IStationsService stationsService)
 {
     // _Regions.First().Stations = new ObservableCollection<Station>(stationsService.Get());
 }
コード例 #9
0
        //public StationsController()
        //    : this(new MockStationsService())
        //{
        //}

        public StationsController(IStationsService stationsService)
        {
            this.stationService = stationsService;
        }