This commit is contained in:
parent
692ad86616
commit
92adada4fb
@ -373,8 +373,22 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
void NodeText_Changed(object sender)
|
||||
{
|
||||
//ItemInfo myItemInfo = sender as ItemInfo;
|
||||
Text = _VEObject.ToString();
|
||||
ItemInfo myItemInfo = _VEObject as ItemInfo;
|
||||
if (myItemInfo != null && myItemInfo.IsSection)
|
||||
{
|
||||
myItemInfo.RefreshConfig();
|
||||
// check if metasection & has subsections. This could be a change in config
|
||||
// item, i.e. Editable Data, that would add or remove any step nodes, i.e. requires a
|
||||
// tree refresh.
|
||||
if (myItemInfo.Sections != null && myItemInfo.Sections.Count > 0 && myItemInfo.ActiveFormat.PlantFormat.FormatData.SectData.UseMetaSections)
|
||||
{
|
||||
// see if change in children tree nodes.
|
||||
this.Nodes.Clear();
|
||||
_ChildrenLoaded = false;
|
||||
LoadChildren(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
public VETreeNode(IVEDrillDownReadOnly o)
|
||||
: base(o.ToString())
|
||||
|
Loading…
x
Reference in New Issue
Block a user