コード例 #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);
 }