private void OnAddToLibraryClick(object sender, EventArgs e)
{
if (_bookSelection.CurrentSelection != null)
{
try
{
//nb: don't move this to after the raise command, as the selection changes
var checkinNotice = string.Format("Created book from '{0}'", _bookSelection.CurrentSelection.TitleBestForUserDisplay);
_createFromSourceBookCommand.Raise(_bookSelection.CurrentSelection);
//_sendReceiver.CheckInNow(checkinNotice);
}
catch(Exception error)
{
SIL.Reporting.ErrorReport.NotifyUserOfProblem(error,"Bloom could not add that book to the library.");
}
}
}