GetExceptionDetailsAndLog() private method

private GetExceptionDetailsAndLog ( ) : NameValueCollection
return System.Collections.Specialized.NameValueCollection
 private static void DoShow(Control owner, string title, string message, Exception exception)
 {
     var dlg = new ExceptionMessageBox
     {
         Text = title,
         _message = { Text = message },
         _exception = { Text = exception.ToString() },
         _realException = exception
     };
     dlg._parameters = dlg.GetExceptionDetailsAndLog();
     dlg._exception.Visible = false;
     if (owner != null)
         dlg.ShowDialog(owner);
     else
         dlg.ShowDialog();
 }
Example #2
0
        private static void DoShow(Control owner, string title, string message, Exception exception)
        {
            var dlg = new ExceptionMessageBox
            {
                Text           = title,
                _message       = { Text = message },
                _exception     = { Text = exception.ToString() },
                _realException = exception
            };

            dlg._parameters        = dlg.GetExceptionDetailsAndLog();
            dlg._exception.Visible = false;
            if (owner != null)
            {
                dlg.ShowDialog(owner);
            }
            else
            {
                dlg.ShowDialog();
            }
        }