B2019-161 Timing of Close Word App
This commit is contained in:
parent
b82f015286
commit
0bc786f46f
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user