private void TestForm_FormClosing(object sender, FormClosingEventArgs e) { try { Execution.CloseTest(); Execution.OpenExecution(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }