private async Task AsyncLoadStations() { await Task.Delay(5000); Stations = new ObservableCollection<Station>(stationsService.GetStations()); CurrentLocation = new Location(52.01, 20.90); }
private void LoadStations() { Stations = new ObservableCollection<Station>(stationsService.GetStations()); CurrentLocation = new Location(52.01, 20.90); //Thread.Sleep(2000); }