示例#1
0
文件: THView.cs 项目: au12113/Project
 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;
 }
示例#2
0
 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();
 }
示例#3
0
文件: THView.cs 项目: au12113/Project
 private void UpdateTile(PictureBox pb,Tile b)
 {
     pb.Visible = ((Tile)b).Tvisible();
     pb.Enabled = ((Tile)b).Tvisible();
 }