From de69fe6b6fc42c17aa64b25c30f77067553903f3 Mon Sep 17 00:00:00 2001 From: mschill Date: Wed, 22 Oct 2025 14:20:46 -0400 Subject: [PATCH] B2025-056 Incoming Transitions Go To Procedure --- .../Volian.Controls.Library/DisplaySearch.Designer.cs | 10 ++++++++-- PROMS/Volian.Controls.Library/DisplaySearch.cs | 11 ++++++----- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/PROMS/Volian.Controls.Library/DisplaySearch.Designer.cs b/PROMS/Volian.Controls.Library/DisplaySearch.Designer.cs index 1ee963a9..5c2552de 100644 --- a/PROMS/Volian.Controls.Library/DisplaySearch.Designer.cs +++ b/PROMS/Volian.Controls.Library/DisplaySearch.Designer.cs @@ -188,7 +188,6 @@ namespace Volian.Controls.Library this.tabSearchTypes.Controls.Add(this.tabControlPanel5); this.tabSearchTypes.Controls.Add(this.tabControlPanel2); this.tabSearchTypes.Controls.Add(this.tabControlPanel3); - this.tabSearchTypes.Controls.Add(this.tabControlPanel1); this.tabSearchTypes.Controls.Add(this.contextMenuBar1); this.tabSearchTypes.Dock = System.Windows.Forms.DockStyle.Top; this.tabSearchTypes.Location = new System.Drawing.Point(0, 0); @@ -983,7 +982,6 @@ namespace Volian.Controls.Library this.tabControlPanel1.Controls.Add(this.lblSrchIncTran); this.tabControlPanel1.Controls.Add(this.groupBox1); this.tabControlPanel1.DisabledBackColor = System.Drawing.Color.Empty; - this.tabControlPanel1.Dock = System.Windows.Forms.DockStyle.Fill; this.tabControlPanel1.Location = new System.Drawing.Point(0, 34); this.tabControlPanel1.Name = "tabControlPanel1"; this.tabControlPanel1.Padding = new System.Windows.Forms.Padding(1); @@ -997,6 +995,8 @@ namespace Volian.Controls.Library this.tabControlPanel1.Style.GradientAngle = 90; this.tabControlPanel1.TabIndex = 17; this.tabControlPanel1.TabItem = this.tabIncTrans; + this.tabControlPanel1.Anchor = ((System.Windows.Forms.AnchorStyles)(( System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); + this.tabControlPanel1.RightToLeft = System.Windows.Forms.RightToLeft.No; // // btnTranCvtSelToTxt // @@ -1732,6 +1732,12 @@ namespace Volian.Controls.Library this.Controls.Add(this.xpStepTypes); this.Controls.Add(this.xpSetToSearch); this.Controls.Add(this.tabSearchTypes); + this.Controls.Add(this.tabControlPanel1); + //B2025-056 Click on Incoming Transitions + // This needs to be part of overall control + // since if it is part of tabSearchTypes, + // then when that is disabled, buttons on + // this will be also this.Margin = new System.Windows.Forms.Padding(2); this.Name = "DisplaySearch"; this.RightToLeft = System.Windows.Forms.RightToLeft.Yes; diff --git a/PROMS/Volian.Controls.Library/DisplaySearch.cs b/PROMS/Volian.Controls.Library/DisplaySearch.cs index dbca6c18..81c7511a 100644 --- a/PROMS/Volian.Controls.Library/DisplaySearch.cs +++ b/PROMS/Volian.Controls.Library/DisplaySearch.cs @@ -1857,14 +1857,15 @@ namespace Volian.Controls.Library lbSrchResultsIncTrans.Enabled = false; lbSrchResultsIncTrans.UseWaitCursor = true; } - ListBox mylb = sender as ListBox; + //B2025-056 Click on Incoming Transitions + // Clicking on Incoming Transitions + // will now open that item + ListBox mylb_lbSrchResults = sender as ListBox; + ListBoxAdv mylb_lbSrchResultsIncTrans = sender as ListBoxAdv; // If the list is being refreshed, then set the selection index to -1 (no selection) // B2022-044: don't set selection to top of list (commented out/changed if) - //if (mylb != null && _SearchResults.RefreshingList && mylb.SelectedIndex != -1) - // //mylb.SelectedIndex = -1; - //else - if (mylb != null && !_SearchResults.RefreshingList) + if ((mylb_lbSrchResults != null || mylb_lbSrchResultsIncTrans != null) && !_SearchResults.RefreshingList) { _ItemInfo = (tabSearchTypes.SelectedTab == tabSearchTypes.Tabs[4]) ? lbSrchResultsIncTrans.SelectedValue as ItemInfo : lbSrchResults.SelectedValue as ItemInfo; if ((tabSearchTypes.SelectedTab == tabSearchTypes.Tabs[1]) && (_ItemInfo != null))