Пример #1
0
 private void dataTimer_Tick(object sender, EventArgs e)
 {
     OnWeatherDataChanged(WeatherData.Generate());
 }
Пример #2
0
        public void UpdateTemperature(object sender, EventArgs e)
        {
            WeatherData weatherData = e as WeatherData;

            this.temperatureLabel.Text = string.Format("溫度: {0} 度", weatherData.Temperature.ToString("#.##"));
        }
Пример #3
0
 private void dataTimer_Tick(object sender, EventArgs e)
 {
     weatherData = WeatherData.Generate();
     Render();
 }