SIL.FieldWorks.Common.Controls.LayoutMerger.CopyNodesNotInOldConfigured C# (CSharp) Method

CopyNodesNotInOldConfigured() private method

Copy nodes from index to limIndex to output, stopping if a node is found that has a key in m_oldPartsFound. Return the index of the next (uncopied) node, either limIndex or the index of the node with a key we still want.
private CopyNodesNotInOldConfigured ( int index, int limIndex ) : int
index int
limIndex int
return int
		private int CopyNodesNotInOldConfigured(int index, int limIndex)
		{
			while (index < limIndex && !m_oldPartsFound.ContainsKey(GetKey(m_newMaster.ChildNodes[index])))
			{
				XmlNode copy = CopyToOutput(m_newMaster.ChildNodes[index]);
				// Susanna said to preserve the visibility of nodes not in the old version.
				// If we want to hide them to make the new view more like the 'oldConfigured' one, this is where to do it.
				//XmlUtils.SetAttribute(copy, "visibility", "never");
				CheckForAndReattachLayoutParamSuffix(copy);
				index++;
			}
			return index;
		}