Esempio n. 1
0
 /// <summary>
 /// Raises the Exception event
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected virtual void OnException(object sender, WindowThreadExceptionEventArgs e)
 {
     try
     {
         if (this.Exception != null)
         {
             this.Exception(sender, e);
         }
     }
     catch (Exception ex)
     {
         Debug.WriteLine(ex);
     }
 }
		/// <summary>
		/// Raises the Exception event
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		protected virtual void OnException(object sender, WindowThreadExceptionEventArgs e)
		{
			try
			{
				if (this.Exception != null)
					this.Exception(sender, e);
			}
			catch(Exception ex)
			{
				Debug.WriteLine(ex);
			}
		}