private void OnBookSelectionChanged(object sender, BookSelectionChangedEventArgs bookSelectionChangedEventArgs) { //some of this checking is about bl-272, which was replicated by having one book, going to publish, then deleting that last book. if (BookSelection != null && View != null && BookSelection.CurrentSelection != null && _currentlyLoadedBook != BookSelection.CurrentSelection && View.Visible) { PageLayout = BookSelection.CurrentSelection.GetLayout(); } }
void OnBookSelectionChanged(object sender, BookSelectionChangedEventArgs args) { try { // If we just created this book and are right about to switch to edit mode, // we don't need to update the preview. Not doing so prevents situations where // the page expires before we display it properly (somehow...BL-4856) and // also just saves time. LoadBook(!args.AboutToEdit); UpdateTitleBar(); } catch (Exception error) { var msg = L10NSharp.LocalizationManager.GetString("Errors.ErrorSelecting", "There was a problem selecting the book. Restarting Bloom may fix the problem. If not, please click the 'Details' button and report the problem to the Bloom Developers."); SIL.Reporting.ErrorReport.NotifyUserOfProblem(error, msg); } }
void OnSelectionChanged(object sender, BookSelectionChangedEventArgs bookSelectionChangedEventArgs) { InvokeUpdateDisplay(); }