public ExceptionViewer(Exception ex)
{
InitializeComponent();
_exception = ex;
#region Shows Information
lblTitle.Text = ex.GetType().Name;
tbMessage.Text = ex.Message;
tbError.Text = ex.StackTrace;
tbSource.Text = ex.Source;
if (ex.TargetSite != null)
tbSource.Text += "." + ex.TargetSite.Name;
if (ex.InnerException != null)
{
btnInnerException.Enabled = true;
}
btnClose.Select();
#endregion
#region Localize Labels
this.Text = Resources.TitleExceptionViewer;
#endregion
}