public Form1() { InitializeComponent(); ChessBoard = new ChessBoardManager(pnlChessBoard, txbPlayerName, pctbMark); ChessBoard.DrawChessBoard(); }
public Form1() { InitializeComponent(); ChessBoard = new ChessBoardManager(pnlChessBoard, txbPlayerName, pctbMark); prcbCountDown.Step = Cons.CountDownStep; prcbCountDown.Maximum = Cons.CountDownTime; prcbCountDown.Value = 0; tmCountDown.Interval = Cons.CountDownInterval; ChessBoard.DrawChessBoard(); tmCountDown.Start(); }
public Form1() { InitializeComponent(); ChessBoard = new ChessBoardManager(pnlChessBoard, txbPlayerName, pctbMark); ChessBoard.EndedGame += ChessBoard_EndedGame; ChessBoard.PlayerMarked += ChessBoard_PlayerMarked; prcbCoolDown.Step = Cons.CoolDownStep; prcbCoolDown.Maximum = Cons.CoolDownTime; prcbCoolDown.Value = 0; tmCoolDown.Interval = Cons.CoolDownInterval; tmCoolDown.Start(); socket = new SocketManager(); NewGame(); }
public Form1() { InitializeComponent(); ChessBoard = new ChessBoardManager(pnlChessBoard, txbPlayerName, pctbMark); ChessBoard.EndedGameWinner += ChessBoard_EndedGameWinner; 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; NewGame(); }
public Form1() { InitializeComponent(); Control.CheckForIllegalCrossThreadCalls = false; ChessBoard = new ChessBoardManager(pnlChessBoard, txbPlayerName, 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(); }