Exemplo n.º 1
0
 public View(Board board)
 {
     this.DoubleBuffered = true;
     this.data = new Data();
     this.board = board; //model
     InitializeComponent(); //view
     renderTiles(board);
 }
Exemplo n.º 2
0
        public Game(View view)
        {
            // everythin is contained within view
            // Game is just a wrapper
            this.view = view;
            this.data = this.view.data;

            start();
        }