private static Image CreateImage(List <List <TileOrientation> > tilesMatrix, Dictionary <int, Tile> tiles) { var result = new Image(); foreach (var dim1 in tilesMatrix) { var tileRow = new TilesRow(); foreach (var dim2 in dim1) { var tile = tiles[dim2.Id].SetTile(dim2); tileRow.Add(tile); } result.Add(tileRow); } return(result); }
public void Add(TilesRow row) { Rows.Add(row); }