Esempio n. 1
0
 private void SetDisplayProperties(BoardHexagon boardTile)
 {
     if (this.displayBoneStructure)
     {
         boardTile.ShowLinks(true);
         boardTile.ShowTileValues(false);
     }
     else
     {
         boardTile.ShowLinks(false);
         boardTile.ShowTileValues(true);
     }
 }
Esempio n. 2
0
        private BoardHexagon GetBoardTile(double x, double y, TileType tileType, int tileValue)
        {
            BoardHexagon element = new BoardHexagon();

            element.SetTileType(tileType);

            Board.Children.Add(element);

            Canvas.SetLeft(element, x);
            Canvas.SetTop(element, y);

            element.ShowLinks(true);
            element.ShowTileValues(false);
            element.SetLinkCount(tileValue);

            return(element);
        }