private void BuildOldConfiguredPartsDicts() { m_partLevelParamAttrSuffix = new Dictionary <string, string>(); m_labelAttrSuffix = new Dictionary <string, string>(); m_oldPartsFound = new Dictionary <string, bool>(); foreach (XmlNode child in m_oldConfigured) { if (!IsMergeableNode(child)) { continue; } var baseKey = GetKey(child); m_oldPartsFound[baseKey] = false; var dupKey = GetKeyWithDup(child, true); if (dupKey == baseKey) { continue; } // Due to an old bug some configurations have bad data with indistinguishable duplicate nodes. Just drop the extra ones. if (!m_labelAttrSuffix.ContainsKey(dupKey)) { m_labelAttrSuffix.Add(dupKey, LayoutKeyUtils.GetPossibleLabelSuffix(child)); m_partLevelParamAttrSuffix.Add(dupKey, LayoutKeyUtils.GetPossibleParamSuffix(child)); } } }
private void BuildOldConfiguredPartsDicts() { m_partLevelParamAttrSuffix = new Dictionary <string, string>(); m_labelAttrSuffix = new Dictionary <string, string>(); m_oldPartsFound = new Dictionary <string, bool>(); foreach (XmlNode child in m_oldConfigured) { if (!IsMergeableNode(child)) { continue; } var baseKey = GetKey(child); m_oldPartsFound[baseKey] = false; var dupKey = GetKeyWithDup(child); if (dupKey == baseKey) { continue; } m_labelAttrSuffix.Add(dupKey, LayoutKeyUtils.GetPossibleLabelSuffix(child)); m_partLevelParamAttrSuffix.Add(dupKey, LayoutKeyUtils.GetPossibleParamSuffix(child)); } }