Exemple #1
0
 public WorldWeather()
 {
     InitializeComponent();
     OpenWeatherMapService = new OpenWeatherMapService();
     DataContext           = this;
     OpenWeatherMapService.GetWeatherAsync();
 }
Exemple #2
0
 public WorldWeather()
 {
     InitializeComponent();
     OpenWeatherMapService = ViewModelSource.Create(() => new OpenWeatherMapService());
     DataContext           = this;
     OpenWeatherMapService.GetWeatherAsync();
 }