コード例 #1
0
        private static BoardSquare CreateSquare(int tile, int row, int column)
        {
            var square = new BoardSquare(tile); //BoardSquare object inherits button - see BoardSquare.cs

            square.Text     = tile.ToString();
            square.Size     = new System.Drawing.Size(35, 35);
            square.Location = new Point(column * 35, row * 35);
            square.Enabled  = false;
            return(square);
        }
コード例 #2
0
 public void AddSquare(BoardSquare square)
 {
     _squares.Add(square);
 }