void tile_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) { if (isMoving) return; saveTile = sender as Tile; savePoint = e.GetPosition(Tiles); }
public Tile FindTile(int x, int y, Tile origin) { foreach (Tile item in Tiles.Children) { if (item.IndexX == x && item.IndexY == y) { if (origin == item) continue; return item; } } return null; }