From 92adada4fb15ee97c1ab48740f2224fa754d9c82 Mon Sep 17 00:00:00 2001 From: Kathy Date: Wed, 15 Feb 2012 15:01:08 +0000 Subject: [PATCH] --- .../VEPROMS.CSLA.Library/VEObjects/VETreeNode.cs | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) 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())