private static void CallWeatherUpdate() { if (OnWeatherUpdate != null) { OnWeatherUpdate.Invoke(Current); } }
private async Task GetWeather() { var current_weather = await _weather.GetWeatherDataAsync(_settings.LOCATION_LAT, _settings.LOCATION_LNG, Unit.UK, Language.English); LastWeatherMinutely = current_weather.Minutely; OnWeatherUpdate?.Invoke(current_weather.Currently.Icon); }
protected virtual void RaiseOnWeatherUpdate(WeatherData e) { OnWeatherUpdate?.Invoke(this, e); }