private void BuildData() { TreeView_CityShop.Nodes.Clear(); propertyGrid1.SelectedObject = null; shopsData = new CityShops(cityShopsFile.FullName); TreeNode areaNode = new TreeNode("Areas"); TreeNode dataNode = new TreeNode("Data"); for (int i = 0; i != shopsData.AreaDatas.Count; i++) { TreeNode node = new TreeNode(shopsData.AreaDatas[i].Name); node.Tag = shopsData.AreaDatas[i]; dataNode.Nodes.Add(node); } for (int i = 0; i != shopsData.Areas.Count; i++) { TreeNode node = new TreeNode(shopsData.Areas[i].Name); node.Tag = shopsData.Areas[i]; areaNode.Nodes.Add(node); } TreeView_CityShop.Nodes.Add(areaNode); TreeView_CityShop.Nodes.Add(dataNode); }
public static void CleanData() { FrameNameTable = null; FrameResource = null; VertexBufferPool = null; IndexBufferPool = null; SoundSector = null; Actors = null; ItemDescs = null; Collisions = null; CityAreas = null; CityShops = null; roadMap = null; ATLoader = null; AIWorlds = null; OBJData = null; }