private async Task InitializeGetWeatherAsync()
 {
     try
     {
         IsBusy           = true;
         WeatherMainModel = await _weatherServices.GetWeatherDetails(_city);
     }
     finally
     {
         IsBusy = false;
     }
 }
Ejemplo n.º 2
0
 private async Task InitializeGetWeatherAsync()
 {
     try
     {
         IsBusy           = true; // set the ui property "IsRunning" to true(loading) in Xaml ActivityIndicator Control
         WeatherMainModel = await _weatherServices.GetWeatherDetails(_city);
     }
     finally
     {
         IsBusy = false;
     }
 }