public Form1() { InitializeComponent(); ChessBoard = new ChessBoardManager(pnlChessBoard, txbPlayerName); ChessBoard.EndedGame += EndGame; ChessBoard.DrawChessBoard(); }
public Form1() { InitializeComponent(); ChessBoard = new ChessBoardManager(pnlChessBoard); ChessBoard.DrawChessBoard(); }
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(); }
public Form1() { InitializeComponent(); chessBoard = new ChessBoardManager(pnlChessBoard, txtPlayerName, pctbMark); chessBoard.EndedGame += ChessBoard_EndedGame; chessBoard.PlayerMarked += ChessBoard_PlayerMarked; prcbCoolDown.Step = Cons.COOL_DOWN_STEP; prcbCoolDown.Maximum = Cons.COOL_DOWN_TIME; prcbCoolDown.Value = 0; tmCoolDown.Interval = Cons.COOL_DOWN_INTERVAL; socket = new SocketManager(); NewGame(); }
public Form1() { InitializeComponent(); chessBoard = new ChessBoardManager(pnChessBoard, txbPlayerName, pbMark); chessBoard.DrawChessBoard(); }
private void btnNewGame_Click(object sender, EventArgs e) { ChessBoard = new ChessBoardManager(pnlChessBoard, txbPlayerName); ChessBoard.DrawChessBoard(); }
void isNewGame() { ChessBoard.DrawChessBoard(); ChessBoard = new ChessBoardManager(pnlChessBoard, txbPlayerName); }