Esempio n. 1
0
 /// <summary>
 /// Proxies the weather source's event.
 /// </summary>
 static void HandleWeatherError(object sender, WeatherErrorArgs e)
 {
     if (WeatherError != null)
     {
         WeatherError(sender, e);
     }
 }
Esempio n. 2
0
 /// <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();
     });
 }
Esempio n. 3
0
		/// <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);
		}