B2016-211 – don’t expand all the sub sections when entering a procedure from the parent section
This commit is contained in:
parent
ae856a98ec
commit
191648da4b
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user