コード例 #1
0
 private static void CallWeatherUpdate()
 {
     if (OnWeatherUpdate != null)
     {
         OnWeatherUpdate.Invoke(Current);
     }
 }
コード例 #2
0
        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);
        }
コード例 #3
0
 protected virtual void RaiseOnWeatherUpdate(WeatherData e)
 {
     OnWeatherUpdate?.Invoke(this, e);
 }