public void AddMove(GameMove gameMove) { if (pnlGamePad.GetControlFromPosition(gameMove.ColumnIndex, gameMove.RowIndex) != null && gameEngine != null) return; XOSymbolUC xoSymbolUC = new XOSymbolUC(gameMove.XOSymbol); this.pnlGamePad.Controls.Add(xoSymbolUC, gameMove.ColumnIndex, gameMove.RowIndex); }
public void AddMove(GameMove gameMove) { if (pnlGamePad.GetControlFromPosition(gameMove.ColumnIndex, gameMove.RowIndex) != null && gameEngine != null) { return; } XOSymbolUC xoSymbolUC = new XOSymbolUC(gameMove.XOSymbol); this.pnlGamePad.Controls.Add(xoSymbolUC, gameMove.ColumnIndex, gameMove.RowIndex); }