Esempio n. 1
0
 public SearchPageViewModel(INavigationService navigationService, ISqlBusStopService sqlBusStopService)
     : base(navigationService)
 {
     Title = "Szukaj";
     _navigationService = navigationService;
     _sqlBusStopService = sqlBusStopService;
 }
 public BusStopPageViewModel(INavigationService navigationService, IJsonBusStopService jsonBusStopService,
                             ISqlBusStopService sqlBusStopService, IEventAggregator eventAggregator)
     : base(navigationService)
 {
     _jsonBusStopService = jsonBusStopService;
     _sqlBusStopService  = sqlBusStopService;
     _eventAggregator    = eventAggregator;
 }
        public FavouritePageViewModel(INavigationService navigationService, ISqlBusStopService sqlBusStopService,
                                      IEventAggregator eventAggregator)
            : base(navigationService)
        {
            Title = "Ulubione";

            _navigationService = navigationService;
            _sqlBusStopService = sqlBusStopService;
            _eventAggregator   = eventAggregator;

            _eventAggregator.GetEvent <AddToFavouriteEvent>().Subscribe(UpdateFavouriteList);

            UpdateFavouriteList();
        }