BF2Statistics.ExceptionForm.ExceptionForm C# (CSharp) Method

ExceptionForm() public method

Constructor
public ExceptionForm ( Exception E, bool Recoverable ) : System
E Exception The exception object
Recoverable bool Defines if the exception is recoverable
return System
        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;
        }