public ExceptionForm(Exception E, bool Recoverable)
{
InitializeComponent();
// Hide details at the start
panelDetails.Hide();
ExceptionDetails.Text = "StackTrace: " + Environment.NewLine + E.StackTrace;
ExceptionObj = E;
// Preform form layout based on recoverability
if (!Recoverable)
{
buttonContinue.Hide();
buttonViewLog.Location = new Point(225, 12);
}
// Reset log button
TraceLog = _logFile;
}