示例#1
0
文件: Form1.cs 项目: denisorda16/Navy
        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();
        }
示例#2
0
文件: Form1.cs 项目: denisorda16/Navy
 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);
 }