Ejemplo n.º 1
0
 private void Setup()
 {
     if (tetrisGame != null)
     {
         tetrisGame.OnConnect    -= ClientConnected;
         tetrisGame.OnDisconnect -= ClientDisconnected;
         tetrisGame.Close();
     }
     tetrisGame = new TetrisGame(new HighscoreTextfileReader(), new TetrisDrawerForm(MainGamePictureBox, NextBlockPictureBox, OnlineGamePictureBox, InfoLabel, OnlineScoreLabel), new FormInputManager(Dispatcher.CurrentDispatcher), 10, 20);
     tetrisGame.OnDisconnect += ClientDisconnected;
     tetrisGame.OnConnect    += ClientConnected;
 }