private void fetchLikedPages() { List <Page> pages = null; if (m_LoggedInUser != null) { if (!LikedPagesInOrderCheckBox.Checked) { pages = SortingAndCopyService.CopyPagesToList(m_LoggedInUser.LikedPages); } else { pages = fetchLikedPagesInOrder(); } if (pages != null) { showLikedPagesListOnListBox(pages); } if (m_LoggedInUser.LikedPages.Count == 0) { MessageBox.Show("No liked pages to show"); } } else { MessageBox.Show("Your not logged in", "Error"); } }
private List <Page> fetchLikedPagesByOrderChoice() { List <Page> pages = null; if (!LikedPagesInOrderCheckBox.Checked) { pages = SortingAndCopyService.CopyPagesToList(m_LoggedInUser.LikedPages); } else { pages = SortingAndCopyService.SortPages(m_LoggedInUser.LikedPages); } return(pages); }