private Tile getTileByLocation(CheckersCoordinates i_Coordinates) { byte rowIndex = CheckersBoard.GetRowIndexByLetter(i_Coordinates.Row); byte colIndex = CheckersBoard.GetColumnIndexByLetter(i_Coordinates.Column); return(m_Tiles[rowIndex, colIndex]); }
private void soldiers_SoldierRemoved(CheckersCoordinates i_Coordinates) { byte rowIndex = CheckersBoard.GetRowIndexByLetter(i_Coordinates.Row); byte colIndex = CheckersBoard.GetColumnIndexByLetter(i_Coordinates.Column); // Removing the soldier button from the board. m_FormGame.Controls.Remove(m_Tiles[rowIndex, colIndex].ButtonSoldier); m_Tiles[rowIndex, colIndex].ButtonSoldier = null; }