public void boardGameMatchingTitlesPPopupOkButtonClick(PopupWindow popupWindow, ListView selectBoardGamesListView)
        {
            int       activeItem     = ((PopupSelectBoardGameAdapter)selectBoardGamesListView.Adapter).ActiveItemPosition;
            const int noItemSelected = -1;


            if (activeItem == noItemSelected)
            {
                Toast.MakeText(Application.Context, Resource.String.NoItemSelected, ToastLength.Long).Show();
            }
            else
            {
                BoardGameSelectPopup bgsp = (BoardGameSelectPopup)selectBoardGamesListView.Adapter.GetItem(activeItem);
                downloadDataFromBGGById(bgsp.BoardGameId);
                popupWindow.Dismiss();
            }
        }
        public List <BoardGameSelectPopup> GetBoardGameListFromJsonArray(Object titleList)
        {
            JArray titleListJArray = (JArray)titleList;
            List <BoardGameSelectPopup> boardGamesList = new List <BoardGameSelectPopup>();

            for (int index = 0; index < ((JArray)titleList).Count; index++)
            {
                BoardGameSelectPopup bgsp = new BoardGameSelectPopup();
                bgsp.Name = titleListJArray[index]["name"]["@value"].ToString();
                bgsp.Type = titleListJArray[index]["@type"].ToString();
                if (titleListJArray[index]["yearpublished"] != null)
                {
                    bgsp.YearPublished = titleListJArray[index]["yearpublished"]["@value"].ToString();
                }
                bgsp.BoardGameId = titleListJArray[index]["@id"].ToString();
                boardGamesList.Add(bgsp);
            }

            return(boardGamesList);
        }