diff --git a/PROMS/VEPROMS.CSLA.Library/VEObjects/VETreeNode.cs b/PROMS/VEPROMS.CSLA.Library/VEObjects/VETreeNode.cs index 7213a1dc..3e5a490a 100644 --- a/PROMS/VEPROMS.CSLA.Library/VEObjects/VETreeNode.cs +++ b/PROMS/VEPROMS.CSLA.Library/VEObjects/VETreeNode.cs @@ -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())