private void Board_OnNewPieceInserted(object sender, PieceInsertedEventArgs e) { if (e.PieceInserted.Equals(this)) { BoardPosition = e.DestinationCell; InitialPosition = e.DestinationCell; } }
private void Board_OnNewPieceInserted(object sender, PieceInsertedEventArgs e) { if (e.PieceInserted != null && this.Equals(e.PieceInserted.Player)) { if (!this.MyPiecesInBoard.Contains(e.PieceInserted)) { this.MyPiecesInBoard.Add(e.PieceInserted); } } }