public Frm_Wall() { InitializeComponent(); weather = new WeatherApi(); background = new BackgroundController(); // Start with the right weather background.DefineBackgroundWeather(weather); tmr_atualizador.Enabled = true; }
private void tmr_weather_Tick(object sender, EventArgs e) { // Each 20 minutes update the weather // This way, it does not exceed the limit request background.DefineBackgroundWeather(weather); }