private void ParseAttributeFile(string file) { ShxAttributeNode root = null; List <ShxAttributeNode> nodes = null; ParseAttribute(file, out root, out nodes, String.Empty); string key = System.IO.Path.GetFileNameWithoutExtension(file).ToUpper(); if (AttributeListMap.ContainsKey(key) == false) { AttributeListMap.Add(key, nodes); AttributeList.Add(nodes); } if (AttributeRootMap.ContainsKey(key) == false) { AttributeRootMap.Add(key, root); } }
/// <summary> /// Clear Attribute /// </summary> public void ClearAttribute() { AttributeRootMap.Clear(); AttributeList.Clear(); AttributeListMap.Clear(); }