Exemplo n.º 1
0
        public Form1()
        {
            InitializeComponent();

            Control.CheckForIllegalCrossThreadCalls = false;

            chessBoardManager = new ChessBoardManager(panelChessBoad, textBoxName, pictureBoxMark);

            chessBoardManager.EndedGame    += ChessBoard_EndedGame;
            chessBoardManager.PlayerMarked += ChessBoard_PlayerMarked;

            progressBarCoolDown.Step    = Cons.COOL_DOWN_STEP;
            progressBarCoolDown.Maximum = Cons.COOL_DOWN_TIME;
            progressBarCoolDown.Value   = 0;

            tmCoolDown.Interval = Cons.COOL_DOWN_INTERVAL;

            NewGame();

            socketManager = new SocketManager();

            //tmCoolDown.Start();
        }