/// <summary> /// Proxies the weather source's event. /// </summary> static void HandleWeatherError(object sender, WeatherErrorArgs e) { if (WeatherError != null) { WeatherError(sender, e); } }
/// <summary> /// Handles an error with the weather source. /// </summary> /// <param name="sender"> /// Ignored /// </param> /// <param name="e"> /// A <see cref="WeatherErrorArgs"/> which contains the error message. /// </param> void HandleWeatherError(object sender, WeatherErrorArgs e) { DockServices.System.RunOnMainThread(delegate { HoverText = e.Error; Icon = "weather-few-clouds"; Status = WeatherDockletStatus.Error; State &= ~ItemState.Wait; QueueRedraw(); }); }
/// <summary> /// Handles an error with the weather source. /// </summary> /// <param name="sender"> /// Ignored /// </param> /// <param name="e"> /// A <see cref="WeatherErrorArgs"/> which contains the error message. /// </param> void HandleWeatherError (object sender, WeatherErrorArgs e) { DockServices.System.RunOnMainThread (delegate { HoverText = e.Error; Icon = "weather-few-clouds"; Status = WeatherDockletStatus.Error; State &= ~ItemState.Wait; QueueRedraw (); }); }
/// <summary> /// Proxies the weather source's event. /// </summary> static void HandleWeatherError (object sender, WeatherErrorArgs e) { if (WeatherError != null) WeatherError (sender, e); }