/// <summary> /// Initialisiert eine neue Instanz der <see cref="T:System.Object" />-Klasse. /// </summary> public LogbookService( ILogbookEntryDao logbookEntryDao, ILogbookEntryTrackDao logbookEntryTrackDao, IAircraftModelProvider aircraftModelProvider, IAcmiService acmiService) { _logbookEntryDao = logbookEntryDao; _logbookEntryTrackDao = logbookEntryTrackDao; _aircraftModelProvider = aircraftModelProvider; _acmiService = acmiService; }
public AircraftService( IAircraftInformationDao aircraftInformationDao, ILauncherInformationDao launcherInformationDao, IAircraftModelProvider aircraftModelProvider, ISitFileDao sitFileDao, IThumbnailDao thumbnailDao, IRouteService routeService, ILogbookService logbookService) { _aircraftInformationDao = aircraftInformationDao; _launcherInformationDao = launcherInformationDao; _aircraftModelProvider = aircraftModelProvider; _sitFileDao = sitFileDao; _thumbnailDao = thumbnailDao; _routeService = routeService; _logbookService = logbookService; }
public MapViewModel( IAircraftModelProvider modelProvider, IRouteService routeService, IEventAggregator eventAggregator) { _routeService = routeService; _eventAggregator = eventAggregator; Aircrafts = modelProvider.Aircrafts; eventAggregator.GetEvent <PubSubEvent <AircraftsLoadedEvent> >().Subscribe(OnAircraftsLoaded); eventAggregator.GetEvent <PubSubEvent <RoutePointRemovedEvent> >().Subscribe(OnRoutePointRemoved); eventAggregator.GetEvent <PubSubEvent <RoutePointAddedEvent> >().Subscribe(OnRoutePointAdded); eventAggregator.GetEvent <PubSubEvent <SelectionChangedEvent> >().Subscribe(OnAircraftListSelectioChanged); eventAggregator.GetEvent <PubSubEvent <AircraftRemovedEvent> >().Subscribe(OnAircraftRemoved); eventAggregator.GetEvent <PubSubEvent <VisualizeTrackEvent> >().Subscribe(OnVisualizeTrack); }
public AircraftListViewModel( IAircraftService aircraftService, IAircraftModelProvider aircraftModelProvider, SettingsNavigationCommand settingsNavigationCommand, RouteEditorNavigationCommand routeEditorNavCommand, IEventAggregator eventAggregator, ISettingsService settingsService, ShowRemoveConfirmationDialogCommand showRemoveConfirmationDialogCommand, ShowLogbookForAircraftCommand showLogbookForAircraftCommand) { _aircraftService = aircraftService; _settingsNavigationCommand = settingsNavigationCommand; _routeEditorNavCommand = routeEditorNavCommand; _eventAggregator = eventAggregator; _settingsService = settingsService; _showRemoveConfirmationDialogCommand = showRemoveConfirmationDialogCommand; _showLogbookForAircraftCommand = showLogbookForAircraftCommand; Aircrafts = aircraftModelProvider.Aircrafts; CollectionChangedEventManager.AddListener(Aircrafts, this); _eventAggregator.GetEvent <PubSubEvent <MapBoundariesChangedEvent> >().Subscribe(OnMapBoundariesChanged); }