void HandleProcessExitedFromGUIThread()
{
try
{
btnAbort.Enabled = false;
btnClose.Enabled = true;
int code = _Process.ExitCode;
if (code == 0)
{
MessageBox.Show("Your settings appear to be valid.", "VisualGDB", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
else
{
MessageBox.Show(string.Format("AVaRICE exited with code {0}. Please check your settings.", code), "VisualGDB", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
label2.Text = string.Format("AVaRICE exited with code {0}.", code);
}
catch { }
}