Esempio n. 1
0
 private void Sync_UpdateClicked()
 {
     using (LocationService location = new LocationService())
         using (WeatherService weather = new WeatherService())
         {
             Location      loc      = location.GetCurrentLocation();
             Forecast      forecast = weather.GetForecast(loc.City);
             MessageDialog msg      = new MessageDialog(forecast.Summary);
             msg.Display();
         }
 }