/// <summary>
        /// Displays the details of an exception.
        /// </summary>
        public static void HandleException(string caption, MethodBase method, Exception e)
        {
            if (String.IsNullOrEmpty(caption))
            {
                caption = method.Name;
            }

            ExceptionDlg.Show(caption, e);
        }
 /// <summary>
 /// Handles an exception.
 /// </summary>
 public static void HandleException(string caption, Exception e)
 {
     ExceptionDlg.Show(caption, e);
 }