Example #1
0
		internal void UpdateHierarchy(ConfigurationNode configurationNode)
		{
			if (hierarchy != null)
			{
				hierarchy.AddNode(configurationNode);
				UpdateHierarchyRecursive(hierarchy, configurationNode);
			}
		}
Example #2
0
		private void UpdateHierarchyRecursive(IConfigurationUIHierarchy hierarchyToUpdate, ConfigurationNode node)
		{
			for (int idx = 0; idx < node.ChildCount; ++idx)
			{
				if (node.childNodes[idx].Hierarchy == null || node.childNodes[idx].Hierarchy.Id != hierarchyToUpdate.Id)
				{
					//node.childNodes[index].Hierarchy = hierarchy;
					hierarchyToUpdate.AddNode(node.childNodes[idx]);
				}				
				UpdateHierarchyRecursive(hierarchyToUpdate, node.childNodes[idx]);
			}
		}
		private void UpdateHierarchyRecursive(IConfigurationUIHierarchy hierarchyToUpdate, ConfigurationNode node)
		{
			for (int idx = 0; idx < node.ChildCount; ++idx)
			{
				if (node.childNodes[idx].Hierarchy == null || node.childNodes[idx].Hierarchy.Id != hierarchyToUpdate.Id)
				{
					//node.childNodes[index].Hierarchy = hierarchy;
					hierarchyToUpdate.AddNode(node.childNodes[idx]);
				}				
				UpdateHierarchyRecursive(hierarchyToUpdate, node.childNodes[idx]);
			}
		}