B2019-161 Timing of Close Word App

This commit is contained in:
Rich 2019-10-29 13:16:28 +00:00
parent b82f015286
commit 0bc786f46f

View File

@ -1541,8 +1541,12 @@ namespace VEPROMS.CSLA.Library
Tick += new EventHandler(CloseWordApp_Tick); Tick += new EventHandler(CloseWordApp_Tick);
Enabled = true; Enabled = true;
} }
// B2019-161 When tracking timing time this action
private static VolianTimer _TimeActivity = new VolianTimer("DocumentExt.cs CloseWordApp_Tick", 1548);
void CloseWordApp_Tick(object sender, EventArgs e) void CloseWordApp_Tick(object sender, EventArgs e)
{ {
_TimeActivity.Open();
Enabled = false; Enabled = false;
try // B2018-071 Keep code from crashing on close of MS Word try // B2018-071 Keep code from crashing on close of MS Word
{ {
@ -1553,6 +1557,7 @@ namespace VEPROMS.CSLA.Library
_MyLog.WarnFormat("MyApp Quit {0} {1}", ex.GetType().FullName, ex.Message); _MyLog.WarnFormat("MyApp Quit {0} {1}", ex.GetType().FullName, ex.Message);
} }
Dispose(); Dispose();
_TimeActivity.Close();
} }
} }
private static void WaitMS(int n) private static void WaitMS(int n)