Exemple #1
0
 //return weather for a city
 public Weather(string city)
 {
     iLocation = WeatherLocation.WL_AUS;
     yw        = new YahooWeather();
     for (int i = 0; i < yw.WeatherAustralia.Length; i++)
     {
         if (city == yw.WeatherAustralia[i].city.ToLower() || city == yw.WeatherAustralia[i].city.ToLower().Substring(0, 3))
         {
             iLocation = (WeatherLocation)yw.WeatherAustralia[i].index;
             city_name = yw.WeatherAustralia[i].city_chn;
             break;
         }
     }
 }
Exemple #2
0
 /// <summary>
 /// return the weather for all australia
 /// </summary>
 public Weather()
 {
     yw        = new YahooWeather();
     iLocation = WeatherLocation.WL_AUS;
 }