Ejemplo n.º 1
0
 /// <summary>
 /// Raises the MessageLoadException event.
 /// </summary>
 /// <param name="e">Event arguments.</param>
 protected void OnMessageLoadException(MessageLoadExceptionEventArgs e)
 {
     try
     {
         if (_messageLoadException != null)
         {
             _messageLoadException(this, e);
         }
     }
     catch {}
 }
		/// <summary>
		/// Handles an exception whilst a message browser is loading messages.
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="a"></param>
		private void MessageBrowser_MessageLoadException(MessageBrowser sender, MessageLoadExceptionEventArgs e)
		{
			base.PrimaryObjects.ProcessVisualizer.SeizeCursor(Cursors.Arrow);
			MessageBox.Show(e.Exception.Message, Locale.ApplicationName, MessageBoxButtons.OK, MessageBoxIcon.Warning);
			base.PrimaryObjects.ProcessVisualizer.ReleaseCursor();
		}
Ejemplo n.º 3
0
		/// <summary>
		/// Raises the MessageLoadException event.
		/// </summary>
		/// <param name="e">Event arguments.</param>
		protected void OnMessageLoadException(MessageLoadExceptionEventArgs e)
		{
			try
			{
				if (_messageLoadException != null)
					_messageLoadException(this, e);
			}
			catch {}
		}