Example #1
0
File: Form1.cs Project: bhtri/Caro
 private void NewGame()
 {
     prcbCoolDown.Value = 0;
     tmCoolDown.Stop();
     undoToolStripMenuItem.Enabled = true;
     chessBoard.DrawChessBoard();
 }
Example #2
0
        public Form1()
        {
            InitializeComponent();

            ChessBoard = new ChessBoardManager(pnlChessBoard);

            ChessBoard.DrawChessBoard();
        }
Example #3
0
        public Form1()
        {
            InitializeComponent();

            ChessBoard            = new ChessBoardManager(pnlChessBoard, txbPlayerName);
            ChessBoard.EndedGame += EndGame;
            ChessBoard.DrawChessBoard();
        }
Example #4
0
        public Form1()
        {
            InitializeComponent();

            Control.CheckForIllegalCrossThreadCalls = false;

            ChessBoard = new ChessBoardManager(pnlChessBoard, txbName, pctbMark);
            ChessBoard.PlayerMarked += ChessBoard_PlayerMarked;
            ChessBoard.EndedGame    += ChessBoard_EndedGame;

            ChessBoard.DrawChessBoard();

            socket = new SocketManager();
        }
Example #5
0
 public Form1()
 {
     InitializeComponent();
     chessBoard = new ChessBoardManager(pnChessBoard, txbPlayerName, pbMark);
     chessBoard.DrawChessBoard();
 }
Example #6
0
 void NewGame()
 {
     ChessBoard.DrawChessBoard();
 }
Example #7
0
 private void btnNewGame_Click(object sender, EventArgs e)
 {
     ChessBoard = new ChessBoardManager(pnlChessBoard, txbPlayerName);
     ChessBoard.DrawChessBoard();
 }
Example #8
0
 void isNewGame()
 {
     ChessBoard.DrawChessBoard();
     ChessBoard = new ChessBoardManager(pnlChessBoard, txbPlayerName);
 }