From 5d808e436aaa7cff61fead43dde4a5b0137cf251 Mon Sep 17 00:00:00 2001 From: Kathy Ruffing Date: Wed, 22 May 2024 08:51:22 -0400 Subject: [PATCH] B2024-023: UI fixes for insert section with associated enhanced section --- PROMS/Volian.Controls.Library/vlnTreeView.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/PROMS/Volian.Controls.Library/vlnTreeView.cs b/PROMS/Volian.Controls.Library/vlnTreeView.cs index 1751f6ed..05e3d73e 100644 --- a/PROMS/Volian.Controls.Library/vlnTreeView.cs +++ b/PROMS/Volian.Controls.Library/vlnTreeView.cs @@ -3065,6 +3065,15 @@ namespace Volian.Controls.Library { SaveEnhancedForSection(sourceSect, newenhSection, sed.Type); RefreshRelatedNode(SectionInfo.Get(newenhSection.ItemID)); + // B2024-023: when inserting a source section, the associated + // enhanced section did not appear in tree view or in edit window (if it + // was displayed in editor). Add to tree view and close the enhanced + // procedure edit window. Note that closing of edit window was done to + // be consistent on what happens upon delete of source w/ and enhanced + // section. + SectionInfo tmpsi = SectionInfo.Get(newenhSection.ItemID); + RefreshRelatedNode(ProcedureInfo.Get(tmpsi.MyParent.ItemID)); + OnSectionShouldClose(this, new vlnTreeSectionInfoEventArgs(tmpsi, true)); } } return; -- 2.47.2