public bool DeleteBook(Book.Book book)
{
Debug.Assert(book == _bookSelection.CurrentSelection);
if (_bookSelection.CurrentSelection != null && _bookSelection.CurrentSelection.CanDelete)
{
var title = _bookSelection.CurrentSelection.TitleBestForUserDisplay;
var confirmRecycleDescription = L10NSharp.LocalizationManager.GetString("CollectionTab.ConfirmRecycleDescription", "The book '{0}'");
if (ConfirmRecycleDialog.JustConfirm(string.Format(confirmRecycleDescription, title), false, "Palaso"))
{
TheOneEditableCollection.DeleteBook(book.BookInfo);
_bookSelection.SelectBook(null);
#if Chorus
_sendReceiver.CheckInNow(string.Format("Deleted '{0}'", title));
#endif
return true;
}
}
return false;
}