Beispiel #1
0
        private void loadFromXmlFile(string filename)
        {
            XmlDocument xmlDoc = new XmlDocument();
            xmlDoc.Load(filename);
            TileSet tileSet = new TileSet();
            tileSet.loadTileSetFromXmlDoc(xmlDoc);

            currentTileList.Clear();
            foreach(Tile tile in tileSet.tiles)
            {
                currentTileList.Add(tile);
            }
            clearSelected();
            updateSelectedStuff(-2);
            refreshTileSetLayout();
        }