private void GetParatextScrTextWrapperIfNeeded(bool refreshBooksIfExisting = false) { Debug.Assert(m_project.IsLiveParatextProject); if (m_paratextScrTextWrapper == null) { m_paratextScrTextWrapper = m_project.GetLiveParatextDataIfCompatible(true, "", false); } else if (refreshBooksIfExisting) { m_paratextScrTextWrapper.GetUpdatedBookInfo(); } }
internal ScriptureRangeSelectionDlg(Project project, ParatextScrTextWrapper paratextScrTextWrapper) { InitializeComponent(); m_project = project; m_paratextScrTextWrapper = paratextScrTextWrapper; m_availableOtBooks = m_project.AvailableBooks.Where(b => BCVRef.BookToNumber(b.Code) <= 39).ToList(); m_availableNtBooks = m_project.AvailableBooks.Where(b => BCVRef.BookToNumber(b.Code) > 39).ToList(); Initialize(); HandleStringsLocalized(); LocalizeItemDlg <TMXDocument> .StringsLocalized += HandleStringsLocalized; }