From 831858d19e125c26003c48a3e487e945b771dbcd Mon Sep 17 00:00:00 2001 From: John Date: Tue, 19 Aug 2014 21:10:58 +0000 Subject: [PATCH] Added logic to allow TitleWithTextRight and TitleWithTextBelow to be available on the type list of the Search function when Searchable is set to True in the format file for these types. Note that the Title type (index 12) must also have Searchable set to True. --- PROMS/Volian.Controls.Library/DisplaySearch.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/PROMS/Volian.Controls.Library/DisplaySearch.cs b/PROMS/Volian.Controls.Library/DisplaySearch.cs index 2fe4c495..e34159ac 100644 --- a/PROMS/Volian.Controls.Library/DisplaySearch.cs +++ b/PROMS/Volian.Controls.Library/DisplaySearch.cs @@ -223,7 +223,8 @@ namespace Volian.Controls.Library newnode.Name = sd.Type; DevComponents.AdvTree.Node pnode = NewAdvTreeNode(sd.Type, true, false); //create parent node (non selectable) pnode.Name = sd.Type; - pnode.Nodes.Add(newnode); + if (!sd.Type.Equals("Title")) // only use Title as a tree grouping to put Title with Text Right/Below substep types + pnode.Nodes.Add(newnode); pnode.Nodes.Sort(); advTreeStepTypes.Nodes.Add(pnode); } @@ -240,7 +241,7 @@ namespace Volian.Controls.Library // Group by High Level Steps, Substeps, Cautions, Notes, Figures, Tables while (!parentName.Equals("Base") && !parentName.Equals("Substep") && !parentName.Equals("High") && !parentName.Equals("Caution") && !parentName.Equals("Note") && !parentName.Equals("Table") && - !parentName.Equals("Figure")) + !parentName.Equals("Figure") && !parentName.Equals("Title")) { StepData tmpsd = (StepData)parnode.Tag; parentName = tmpsd.ParentType;