Exemplo n.º 1
0
 //метод заповнює даними прогнозні контроли
 private void SetForecastControls(Label lbDate, PictureBox picture, Label lbTemperature, int day)
 {
     lbDate.Text   = dateTime.AddDays(day).ToString("dddd", Thread.CurrentThread.CurrentUICulture).ToLower();
     picture.Image = weather.GetForecastIcon(day);
     toolTip.SetToolTip(picture, weather.GetForecastComment(day));
     lbTemperature.Text = weather.GetForecastMinMaxTemperature(day);
 }