Beispiel #1
0
 private void UpdateWeeksWeatherForecastDisplay()
 {
     WeatherLogic.UpdateThisWeeksWeather();
     if (MirrorState.IsConnectedToInternet())
     {
         //WeeksWeatherLocationTextBlock.Text = WeatherLogic.GetCurrentLocation();
         ForecastDay1Date.Text      = WeatherLogic.GetDay1Date();
         ForecastDay1High.Text      = WeatherLogic.GetDay1HighTemp();
         ForecastDay1Low.Text       = WeatherLogic.GetDay1LowTemp();
         ForecastDay1Weather.Source = new BitmapImage(new Uri(WeatherLogic.GetDay1WeatherIcon()));
         ForecastDay2Date.Text      = WeatherLogic.GetDay2Date();
         ForecastDay2High.Text      = WeatherLogic.GetDay2HighTemp();
         ForecastDay2Low.Text       = WeatherLogic.GetDay2LowTemp();
         ForecastDay2Weather.Source = new BitmapImage(new Uri(WeatherLogic.GetDay2WeatherIcon()));
         ForecastDay3Date.Text      = WeatherLogic.GetDay3Date();
         ForecastDay3High.Text      = WeatherLogic.GetDay3HighTemp();
         ForecastDay3Low.Text       = WeatherLogic.GetDay3LowTemp();
         ForecastDay3Weather.Source = new BitmapImage(new Uri(WeatherLogic.GetDay3WeatherIcon()));
         ForecastDay4Date.Text      = WeatherLogic.GetDay4Date();
         ForecastDay4High.Text      = WeatherLogic.GetDay4HighTemp();
         ForecastDay4Low.Text       = WeatherLogic.GetDay4LowTemp();
         ForecastDay4Weather.Source = new BitmapImage(new Uri(WeatherLogic.GetDay4WeatherIcon()));
         ForecastDay5Date.Text      = WeatherLogic.GetDay5Date();
         ForecastDay5High.Text      = WeatherLogic.GetDay5HighTemp();
         ForecastDay5Low.Text       = WeatherLogic.GetDay5LowTemp();
         ForecastDay5Weather.Source = new BitmapImage(new Uri(WeatherLogic.GetDay5WeatherIcon()));
     }
 }