/// ------------------------------------------------------------------------------------ /// <summary> /// Updates the book properties on the current ScrBook and ScrBookRef. /// </summary> /// ------------------------------------------------------------------------------------ protected void UpdateBookProperties() { // Save book names and abbreviations to the current ScrBook m_listBookInfo.SaveMultiLingualStrings(); // All new settings in the book should now be written to the ScrBookRef m_currentBook.BookIdRA.BookName.CopyAlternatives(m_currentBook.Name); m_currentBook.BookIdRA.BookAbbrev.CopyAlternatives(m_currentBook.Abbrev); IScrRefSystem scrRefSystem = m_currentBook.Cache.ServiceLocator.GetInstance <IScrRefSystemRepository>().AllInstances().FirstOrDefault(); IScrBookRef scrBookRef = scrRefSystem.BooksOS[m_currentBook.CanonicalNum - 1]; scrBookRef.BookName.CopyAlternatives(m_currentBook.Name); scrBookRef.BookAbbrev.CopyAlternatives(m_currentBook.Abbrev); }
/// ------------------------------------------------------------------------------------ /// <summary> /// Updates the book properties on the current ScrBook and ScrBookRef. /// </summary> /// ------------------------------------------------------------------------------------ protected void UpdateBookProperties() { // Save book names and abbreviations to the current ScrBook m_listBookInfo.SaveMultiLingualStrings(); // All new settings in the book should now be written to the ScrBookRef m_currentBook.BookIdRA.BookName.CopyAlternatives(m_currentBook.Name, false); m_currentBook.BookIdRA.BookAbbrev.CopyAlternatives(m_currentBook.Abbrev, false); ScrBookRef scrBookRef = (ScrBookRef)m_currentBook.Cache.ScriptureReferenceSystem.BooksOS[m_currentBook.CanonicalNum - 1]; scrBookRef.BookName.CopyAlternatives(m_currentBook.Name, false); scrBookRef.BookAbbrev.CopyAlternatives(m_currentBook.Abbrev, false); }