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

FixUpPartRefParamAttrForDupNode() private method

private FixUpPartRefParamAttrForDupNode ( XmlNode partRefNode, string dupKey ) : void
partRefNode System.Xml.XmlNode
dupKey string
return void
		private void FixUpPartRefParamAttrForDupNode(XmlNode partRefNode, string dupKey)
		{
			if (string.IsNullOrEmpty(partRefNode.GetOptionalStringAttribute(ParamAttr, string.Empty)))
				return; // nothing to do

			var xaParam = partRefNode.Attributes[ParamAttr];
			string suffix;
			if (m_partLevelParamAttrSuffix.TryGetValue(dupKey, out suffix))
			{
				xaParam.Value = xaParam.Value + suffix;
			}
		}