Beispiel #1
0
 public View(Board board)
 {
     this.DoubleBuffered = true;
     this.data = new Data();
     this.board = board; //model
     InitializeComponent(); //view
     renderTiles(board);
 }
Beispiel #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();
        }