private void UpdateBoard(Tile[,] board) { UpdateTile(pictureBox2, board[0, 0]); UpdateTile(pictureBox3, board[1, 0]); UpdateTile(pictureBox4, board[2, 0]); UpdateTile(pictureBox6, board[2, 1]); Run.Enabled = ((THModel)model).btnRun_visible; }
public THModel() { board[0, 0] = new Tile(0); board[1, 0] = new Tile(0, 1); board[2, 0] = new Tile(); board[2, 1] = new Tile(); NotifyAll(); }
private void UpdateTile(PictureBox pb,Tile b) { pb.Visible = ((Tile)b).Tvisible(); pb.Enabled = ((Tile)b).Tvisible(); }