MyWeatherWebService.WeatherWebService wws = new WeatherReport.MyWeatherWebService.WeatherWebService();
if (this.cmbCity.Text != "")
{
str = wws.getWeatherbyCityName(this.cmbCity.Text);
}
else
{
str = wws.getWeatherbyCityName(this.cmbProvince.Text);
}
this.lblWeatherIcon1.Image = System.Drawing.Image.FromFile("..\\..\\WeatherImage\\b_" + str[8]);
this.lblWeatherIcon2.Image = System.Drawing.Image.FromFile("..\\..\\WeatherImage\\b_" + str[9]);
this.lblReport.Text = str[6] + " " + str[5] + " " + str[7];
this.weatherReport.Text = str[1] + " " + str[10] + "\n" + str[11];//记录天气具体情况
this.cityIntroduction.Text = str[22];//记录该城市信息
this.lblTomorrow.ForeColor = System.Drawing.Color.Blue;
this.panelTomorrow.Visible = true;
this.lblWeatherIcon3.Image = System.Drawing.Image.FromFile("..\\..\\WeatherImage\\b_" + str[15]);
this.lblWeatherIcon4.Image = System.Drawing.Image.FromFile("..\\..\\WeatherImage\\b_" + str[16]);
this.lblReport2.Text = str[13] + " " + str[12];
this.lblReport3.Text = str[14];
this.lblDayAfterTomorrow.ForeColor = System.Drawing.Color.Blue;
this.panelDayAfterTomorrow.Visible = true;
this.lblWeatherIcon5.Image = System.Drawing.Image.FromFile("..\\..\\WeatherImage\\b_" + str[20]);
this.lblWeatherIcon6.Image = System.Drawing.Image.FromFile("..\\..\\WeatherImage\\b_" + str[21]);
this.lblReport4.Text = str[18] + " " + str[17];
this.lblReport5.Text = str[19];