B2018-071 PROMs was crashing during automated testing or print all procedures. Error Handling was added to keep the code from crashing.

B2018-070 The MS Word Panel was getting focus when the step editor was active if the PROMS window was resized or if a step with an annotation received focus.  PROMS code was changed so that Word recieves focus when the Word Panel is active.
This commit is contained in:
Rich
2018-05-09 13:36:04 +00:00
parent b5df7ffc1c
commit 71367cf81f
2 changed files with 35 additions and 8 deletions

View File

@@ -1442,7 +1442,14 @@ namespace VEPROMS.CSLA.Library
void CloseWordApp_Tick(object sender, EventArgs e)
{
Enabled = false;
MyApp.Quit(false);
try // B2018-071 Keep code from crashing on close of MS Word
{
MyApp.Quit(false);
}
catch (Exception ex)
{
_MyLog.WarnFormat("MyApp Quit {0} {1}", ex.GetType().FullName, ex.Message);
}
Dispose();
}
}