private void addOrRemoveBookmark(object obj) { bool processSuccessful = false; if (IsBookmarked) { processSuccessful = ClientDataManager.DeleteSingleBookMark(ActiveMagazine.Issue, ActivePageNumber); } else { processSuccessful = ClientDataManager.SaveSingleBookMark(ActiveMagazine.Issue, ActivePageNumber); } if (processSuccessful) { IsBookmarked = !IsBookmarked; ActiveMagazine.Pages[ActivePageIndex].IsBookMarked = IsBookmarked; } }
private void addOrRemoveBookmark(object obj) { bool processSuccessful = false; if (IsBookmarked) { processSuccessful = ClientDataManager.DeleteSingleBookMark(activeMagazine.Issue, ActivePageNumber); } else { processSuccessful = ClientDataManager.SaveSingleBookMark(activeMagazine.Issue, ActivePageNumber); } if (processSuccessful) { IsBookmarked = !IsBookmarked; activeMagazine.Pages[ActivePageIndex].IsBookMarked = IsBookmarked; MessagingCenter.Send(this, Constants.ANIMATE_IMAGE_MESSAGEKEY); } }