Bloom.CollectionTab.LibraryBookView.OnAddToLibraryClick C# (CSharp) Method

OnAddToLibraryClick() private method

private OnAddToLibraryClick ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void
        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.");
                }
            }
        }