C2026-053 #813
@@ -2561,13 +2561,16 @@ namespace VEPROMS
|
|||||||
// B2026-074 added flag (LoadingSavedProcTabs) to supress unnecessary event calls
|
// B2026-074 added flag (LoadingSavedProcTabs) to supress unnecessary event calls
|
||||||
// this will help prevent PROMS from getting stuck continuously looping through the same events
|
// this will help prevent PROMS from getting stuck continuously looping through the same events
|
||||||
// when Word procedure tabs are restored.
|
// when Word procedure tabs are restored.
|
||||||
tc.LoadingSavedProcTabs = true;
|
// C2026-053 leaving this flag in her for now should we decide to trouble-shoot reopening of Word tabs later on.
|
||||||
|
tc.LoadingSavedProcTabs = true; // we check for this flag in DSOTabPanel.cs when opening Word sections
|
||||||
foreach (DataRow TabState in DisPlayTabState.Rows)
|
foreach (DataRow TabState in DisPlayTabState.Rows)
|
||||||
{
|
{
|
||||||
int _ItemID = (int)TabState["ItemID"];
|
int _ItemID = (int)TabState["ItemID"];
|
||||||
ItemInfo _Procedure = ItemInfo.Get(_ItemID);
|
ItemInfo _Procedure = ItemInfo.Get(_ItemID);
|
||||||
// Open procedure in the editor.
|
// C2026-053 Open procedure tab but only if it's NOT a Word section
|
||||||
if (_Procedure == null) continue; //skip and continue with foreach
|
// Needed to disable opening saved Word sections - at least for now.
|
||||||
|
// We were running into performace and random hanging issues with the Word tabs - maybe windows event related.
|
||||||
|
if (_Procedure == null || _Procedure.HasWordContent) continue; //skip and continue with foreach
|
||||||
OpenItem(_Procedure);
|
OpenItem(_Procedure);
|
||||||
if (tc.MyEditItem == null) continue; // skip and continue with foreach
|
if (tc.MyEditItem == null) continue; // skip and continue with foreach
|
||||||
// SelectedStepTabPanel needs to be set so the print buttons on the ribbon will work.
|
// SelectedStepTabPanel needs to be set so the print buttons on the ribbon will work.
|
||||||
|
|||||||
Reference in New Issue
Block a user