B2016-211 – don’t expand all the sub sections when entering a procedure from the parent section

This commit is contained in:
John Jenko 2016-10-28 13:42:53 +00:00
parent ae856a98ec
commit 191648da4b

View File

@ -245,7 +245,8 @@ namespace Volian.Controls.Library
public RTBItem(ItemInfo itemInfo, StepPanel myStepPanel, EditItem myParentEditItem, ChildRelation myChildRelation, bool expand)
{
// B2016-179 If the parent is a section and the child is not a step then set expand to true.
expand |= !itemInfo.IsStepPart && itemInfo.ActiveParent.IsSection;
// B2016-211 Added subsection check - don't expand all of the sub sections when you open a section (Farley)
expand |= (!itemInfo.IsStepPart && itemInfo.ActiveParent.IsSection) && !itemInfo.IsSubsection;
//// TIMING: DisplayItem.TimeIt("CSLARTB Top");
InitializeComponent();// TODO: Performance 25%
SetupEditItem(itemInfo, myStepPanel, myParentEditItem, myChildRelation, expand, null, false);
@ -254,7 +255,8 @@ namespace Volian.Controls.Library
public RTBItem(ItemInfo itemInfo, StepPanel myStepPanel, EditItem myParentEditItem, ChildRelation myChildRelation, bool expand, EditItem nextEditItem)
{
// B2016-179 If the parent is a section and the child is not a step then set expand to true.
expand |= !itemInfo.IsStepPart && itemInfo.ActiveParent is SectionInfo;
// B2016-211 Added subsection check - don't expand all of the sub sections when you open a section (Farley)
expand |= (!itemInfo.IsStepPart && itemInfo.ActiveParent is SectionInfo) && !itemInfo.IsSubsection;
//// TIMING: DisplayItem.TimeIt("CSLARTB Top");
InitializeComponent();// TODO: Performance 25%
SetupEditItem(itemInfo, myStepPanel, myParentEditItem, myChildRelation, expand, nextEditItem, false);
@ -263,7 +265,8 @@ namespace Volian.Controls.Library
public RTBItem(ItemInfo itemInfo, StepPanel myStepPanel, EditItem myParentEditItem, ChildRelation myChildRelation, bool expand, bool addFirstChld)
{
// B2016-179 If the parent is a section and the child is not a step then set expand to true.
expand |= !itemInfo.IsStepPart && itemInfo.ActiveParent is SectionInfo;
// B2016-211 Added subsection check - don't expand all of the sub sections when you open a section (Farley)
expand |= (!itemInfo.IsStepPart && itemInfo.ActiveParent is SectionInfo) && !itemInfo.IsSubsection;
//// TIMING: DisplayItem.TimeIt("CSLARTB Top");
InitializeComponent();// TODO: Performance 25%
SetupEditItem(itemInfo, myStepPanel, myParentEditItem, myChildRelation, expand, null, addFirstChld);