From 0bc786f46f3e0b5ee202d7abac8f3a65d4f3a4a1 Mon Sep 17 00:00:00 2001 From: Rich Date: Tue, 29 Oct 2019 13:16:28 +0000 Subject: [PATCH] B2019-161 Timing of Close Word App --- PROMS/VEPROMS.CSLA.Library/Extension/DocumentExt.cs | 5 +++++ 1 file changed, 5 insertions(+) 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)