B2019-098: Upon error and clicking ok on error dialog, the next dialog, for how to close, loops
This commit is contained in:
@@ -1168,6 +1168,7 @@ namespace VEPROMS
|
||||
return tc.PasteRTBItem(args.MyItemInfo, args.CopyStartID, args.PasteType, (int)args.Type);
|
||||
}
|
||||
private bool _RemoveFromPROMSWindowForms = true;
|
||||
public bool ClosingWithError = false; // B2019-098: prevent looping between error & exit dialog
|
||||
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
|
||||
@@ -1175,7 +1176,7 @@ namespace VEPROMS
|
||||
// B2017-214 added a null reference check
|
||||
// B2010-071 Since we cannot tell if the user click on the X in Word or the X in PROMS, ask if the current tab
|
||||
// should be closed or if we should exit PROMS or just Cancel to continue working
|
||||
if (tc.SelectedDisplayTabItem != null && tc._MyDisplayTabItems.Count > 0)
|
||||
if (!ClosingWithError && tc.SelectedDisplayTabItem != null && tc._MyDisplayTabItems.Count > 0)
|
||||
{
|
||||
DlgCloseTabsOrExit dctoe = new DlgCloseTabsOrExit(); // B2019-071 dialog to ask user if we are to close one tab or exit
|
||||
dctoe.ShowDialog();
|
||||
|
Reference in New Issue
Block a user