public StationMapViewModel(IEventAggregator events, SystemConfig config, CityContextViewModel cityContext)
     : base(events, config, cityContext)
 {
     #if DEBUG
     IsARVisible = true;
     #endif
 }
 public StationViewModel(StationLocationViewModel location, StationAvailabilityViewModel availability)
 {
     events = IoC.Get<IEventAggregator>();
     cityContext = IoC.Get<CityContextViewModel>();
     this.Location = location;
     this.Availability = availability;
     if (location != null)
     {
         Location.ActivateWith(this);
         Location.DeactivateWith(this);
     }
 }
 public SystemConfigViewModel(IEventAggregator events, SystemConfig config, CityContextViewModel cityContext)
 {
     this.events = events;
     this.config = config;
     this.cityContext = cityContext;
     this.Cities = new List<City>();
     Cities.Add(new City() { CityName = " - automatic - " });
     Cities.AddRange(BikeServiceProvider.GetAllCities().OrderBy(c => c.Country + c.CityName));
     if (string.IsNullOrEmpty(config.City))
         selectedCity = Cities[0];
     else
         selectedCity = Cities.Where(c => config.City.Equals(c.UrlCityName, StringComparison.InvariantCultureIgnoreCase)).FirstOrDefault();
 }
 public NavigationViewModel(IEventAggregator events, SystemConfig config, CityContextViewModel cityContext)
     : base(events, config, cityContext)
 {
     this.DestinationLocation = new LocationViewModel();
     this.RouteLegs = new ObservableCollection<NavigationRouteLegViewModel>();
 }