diff --git a/PROMS/VEPROMS.CSLA.Library/Extension/DocumentExt.cs b/PROMS/VEPROMS.CSLA.Library/Extension/DocumentExt.cs index 94f062d2..b9a3f197 100644 --- a/PROMS/VEPROMS.CSLA.Library/Extension/DocumentExt.cs +++ b/PROMS/VEPROMS.CSLA.Library/Extension/DocumentExt.cs @@ -1541,8 +1541,12 @@ namespace VEPROMS.CSLA.Library Tick += new EventHandler(CloseWordApp_Tick); 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) { + _TimeActivity.Open(); Enabled = false; 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); } Dispose(); + _TimeActivity.Close(); } } private static void WaitMS(int n)