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