From 5783621f78a87a08823f265c9c2b405d7e1cdf60 Mon Sep 17 00:00:00 2001 From: John Date: Mon, 10 Sep 2018 17:44:22 +0000 Subject: [PATCH] B2018-123 Separate Windows, when last proc tab is closed in main window, remove doc version id from AllDTCs dictionary and reset the VersionID variable to zero to tell PROMS the main window is available. This allows the next procedure opened from a different set to display in the main window. --- PROMS/Volian.Controls.Library/DisplayTabControl.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/PROMS/Volian.Controls.Library/DisplayTabControl.cs b/PROMS/Volian.Controls.Library/DisplayTabControl.cs index 855f07be..80fd7c14 100644 --- a/PROMS/Volian.Controls.Library/DisplayTabControl.cs +++ b/PROMS/Volian.Controls.Library/DisplayTabControl.cs @@ -499,6 +499,11 @@ namespace Volian.Controls.Library dotNetBarManager1.Bars.Remove(bar); ActivateRemainingTab(); } + // B2018-123 the last tab in the main window was closed. + // remove the procedure version id from the _AllDTCs dictionary + // reset VersionID to zero so that we know the main window is available + _AllDTCs.Remove(VersionID); + VersionID = 0; } else {