public void displayForecast() { // date1.Text = Form1.days[1].date; //date2.Text = Form1.days[2].date; #region day2 pictureBox1.Image = Form1.GetSymbol(1); date1.Text = DateTime.Now.AddDays(1).DayOfWeek.ToString(); min1.Text = Convert.ToDouble(Form1.days[1].tempLow).ToString("0."); max1.Text = Convert.ToDouble(Form1.days[1].tempHigh).ToString("0."); #endregion #region day3 pictureBox2.Image = Form1.GetSymbol(2); date2.Text = DateTime.Now.AddDays(2).DayOfWeek.ToString(); min2.Text = Convert.ToDouble(Form1.days[2].tempLow).ToString("0."); max2.Text = Convert.ToDouble(Form1.days[2].tempHigh).ToString("0."); #endregion #region day4 pictureBox3.Image = Form1.GetSymbol(3); date3.Text = DateTime.Now.AddDays(3).DayOfWeek.ToString(); min3.Text = Convert.ToDouble(Form1.days[3].tempLow).ToString("0."); max3.Text = Convert.ToDouble(Form1.days[3].tempHigh).ToString("0."); #endregion }
public void DisplayCurrent() { cityOutput.Text = Form1.days[0].location; currentOutput.Text = Convert.ToDouble(Form1.days[0].currentTemp).ToString("0.") + "°C"; minOutput.Text = Convert.ToDouble(Form1.days[0].tempLow).ToString("0.") + "°C"; maxOutput.Text = Convert.ToDouble(Form1.days[0].tempHigh).ToString("0.") + "°C"; windlabel.Text = Convert.ToDouble(Form1.days[0].windSpeed).ToString("0."); windLabel2.Text = Form1.days[0].windDirection + ""; HumidLabel.Text = Convert.ToDouble(Form1.days[0].humidity).ToString("0.") + "%"; Form1.GetSymbol(0); }