public bool Load(string path, XPathNavigator navigator) { _tiles = new List<Tile>(); CHelper.GetValueFromXML(path + "/Name", navigator, ref Name, "Unbenannt"); for (int i = 0; i < NUMH * NUMW; i++) { Tile t = new Tile(i); CHelper.GetValueFromXML(path + "/Tile" + (i + 1).ToString() + "/Path", navigator, ref t.FilePath, String.Empty); t.SetFile(t.FilePath); CHelper.GetValueFromXML(path + "/Tile" + (i + 1).ToString() + "/Name", navigator, ref t.Name, t.Name); _tiles.Add(t); } return true; }
public void StopAll(Tile NotThisTile = null) { foreach (Tile tile in _tiles) { if (tile != NotThisTile) tile.Stop(); } }
public void StopAll(Tile NotThisTile = null) { if (sheme.Count == 0) return; sheme[currentSheme].StopAll(NotThisTile); }