Merge pull request '~Added code to handle UI issues when selecting child nodes of a selected node' (#9) from C2023-010 into Development
Reviewed-on: 7/6/2023. Great documentation of the code change. Feel this is ready for testing.
This commit is contained in:
commit
50d462e806
1
.gitignore
vendored
1
.gitignore
vendored
@ -401,3 +401,4 @@ FodyWeavers.xsd
|
||||
|
||||
/fmtall
|
||||
/genmacall
|
||||
AssemblyInfo.cs
|
@ -2323,10 +2323,7 @@ namespace Volian.Controls.Library
|
||||
{
|
||||
foreach (Node tn in nodeCollection)
|
||||
{
|
||||
if (!tn.Checked)
|
||||
tn.Checked = true;
|
||||
else
|
||||
tn.Checked = false;
|
||||
tn.Checked = tn.Parent.Checked;
|
||||
|
||||
if (tn.Nodes != null && tn.Nodes.Count > 0 && tn.Nodes[0].Text != DummyNodeText)
|
||||
CheckTreeNodeChildren(tn.Nodes);
|
||||
@ -2558,6 +2555,10 @@ namespace Volian.Controls.Library
|
||||
n.Style = DevComponents.AdvTree.NodeStyles.Apple;
|
||||
|
||||
if (sd == null)
|
||||
{
|
||||
//C2023-010: Since the tag is null for Word Sections and HLS types, we need to determine which one has been selected. Word sections we need
|
||||
//to process, but we need to ignore adding HLS types.
|
||||
if (n.Text == "WORD Sections")
|
||||
{
|
||||
if (!lstCheckedStepTypesStr.Contains("WORD Sections"))
|
||||
{
|
||||
@ -2565,6 +2566,7 @@ namespace Volian.Controls.Library
|
||||
lstCheckedStepTypesStr.Add("WORD Sections");
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!lstCheckedStepTypesStr.Contains(advTreeStepTypes.SelectedNode.Text))
|
||||
@ -2579,10 +2581,15 @@ namespace Volian.Controls.Library
|
||||
n.Style = null;
|
||||
|
||||
if (sd == null)
|
||||
{
|
||||
//C2023-010: Since the tag is null for Word Sections and HLS types, we need to determine which one has been selected. Word sections we need
|
||||
//to process, but we need to ignore removing HLS types since they were not added in the previous process.
|
||||
if (n.Text == "WORD Sections")
|
||||
{
|
||||
lstCheckedStepTypesStr.Remove("WORD Sections");
|
||||
lstCheckedStepTypes.Remove(0);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lstCheckedStepTypes.Remove((int)sd.Index);
|
||||
@ -2590,6 +2597,17 @@ namespace Volian.Controls.Library
|
||||
}
|
||||
}
|
||||
|
||||
//C2023-010: Check if the node has children and if we need to process those children as well
|
||||
if (n.HasChildNodes)
|
||||
{
|
||||
foreach (Node child in n.Nodes)
|
||||
{
|
||||
child.Checked = n.Checked;
|
||||
advTreeStepTypes.SelectedNode = child;
|
||||
advTreeStepTypes_AfterCheck(sender, null);
|
||||
}
|
||||
}
|
||||
|
||||
buildStepTypePannelTitle();
|
||||
|
||||
// B2021-100: Enable/disable the RNO Only checkbox & WORD Sections tree node in Step Elements to Search.
|
||||
|
Loading…
x
Reference in New Issue
Block a user