private void OnGamePrepared() { button2.Visible = false; button3.Visible = false; preparer.OnPreparedBoards -= OnGamePrepared; preparer = null; game = new Game(user1, user2); game.Init(board1, board2, tableLayoutPanel1, tableLayoutPanel2, tableLayoutPanel3, tableLayoutPanel4); game.Start(); }
public Form1() { InitializeComponent(); user1 = new eUser("Ivan"); user2 = new eUser("Denis"); board1 = new eBoard(); board2 = new eBoard(); preparer = new PrepareGame(board1, board2, tableLayoutPanel1, tableLayoutPanel2, label1); }