This commit is contained in:
Kathy Ruffing 2012-02-15 15:01:08 +00:00
parent 692ad86616
commit 92adada4fb

View File

@ -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())