Ejemplo n.º 1
0
 public TetrisController()
 {
     view = new b10432008(this);
     //整個程式換view時唯一需要改的地方
     model         = new TetrisModel(this, view);
     myTimer.Tick += new EventHandler(myTimer_Tick);
     Application.Run(view);
 }
Ejemplo n.º 2
0
 public TetrisModel(TetrisController controller, TetrisView view)
 {
     this.controller = controller;
     this.view       = view;
     current_block   = new TetrisBlock();
 }