/********************************************************************* * SetPiece * Parameters * piece - the piece that will now be on this space * Set the new piece for this space *********************************************************************/ public void SetPiece(Piece piece) { this.piece = piece; if (piece != null) { BackColor = BackColor; ForeColor = piece.GetTextColor(); image = piece.GetImage(); this.Text = piece.GetPieceType(); piece.SetCol(col); piece.SetRow(row); ForeColor = piece.GetTextColor(); isEmpty = false; } }