B2017-212 If the user uses the X button in Word to close the word attachment, PROMS thinks that the user wants to close out of PROMS as well. Trap for this and close only the Word tab in PROMS.
Made StackToString() public for use in fixing B2017-212
This commit is contained in:
parent
f60e808b89
commit
d6cd49cab2
@ -1072,6 +1072,18 @@ namespace VEPROMS
|
|||||||
}
|
}
|
||||||
private void frmVEPROMS_FormClosing(object sender, FormClosingEventArgs e)
|
private void frmVEPROMS_FormClosing(object sender, FormClosingEventArgs e)
|
||||||
{
|
{
|
||||||
|
// B2017-212 If the user uses the X button in Word to close the word attachment, PROMS thinks that the user wants to close out of PROMS as well
|
||||||
|
// trap for this and close only the Word tab in PROMS
|
||||||
|
if (tc.SelectedDisplayTabItem.MyDSOTabPanel != null)
|
||||||
|
{
|
||||||
|
string stk = Volian.Base.Library.vlnStackTrace.StackToString();
|
||||||
|
if (!stk.Contains("MouseUp") && !stk.Contains("ButtonDown") && !stk.Contains("Exception"))
|
||||||
|
{
|
||||||
|
e.Cancel = true;
|
||||||
|
tc.CloseTabItem(tc.SelectedDisplayTabItem);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
tc.ShuttingDown = true; // This keeps PROMS from Hanging under certain circumstances
|
tc.ShuttingDown = true; // This keeps PROMS from Hanging under certain circumstances
|
||||||
foreach (DisplayTabItem dti in tc.MyBar.Items)
|
foreach (DisplayTabItem dti in tc.MyBar.Items)
|
||||||
{
|
{
|
||||||
|
@ -29,7 +29,7 @@ namespace Volian.Base.Library
|
|||||||
{
|
{
|
||||||
Console.WriteLine(StackToString());
|
Console.WriteLine(StackToString());
|
||||||
}
|
}
|
||||||
private static string StackToString()
|
public static string StackToString()
|
||||||
{
|
{
|
||||||
return StackToString(true);
|
return StackToString(true);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user