/// <summary> /// In SE Fieldworks we can't depend upon ScrControls.dll We need some decoupling to /// prevent the linker from trying to load ScrControls.dll and crashing. /// This seems to work. (Although I wonder if we could get away with just calling this method /// if IsTEInstalled?) /// </summary> /// <param name="sender"></param> /// <param name="args"></param> private void LaunchFilterScrScriptureSectionsDialog(object sender, EventArgs args) { using (FilterScrSectionDialog dlg = new FilterScrSectionDialog(m_cache, m_scrHvos.ToArray())) { dlg.PruneToSelectedSections(m_hvoRoot); dlg.Text = ITextStrings.ksExportInterlinearizedScripture; dlg.TreeViewLabel = ITextStrings.ksSelectSectionsExported; if (dlg.ShowDialog() == DialogResult.OK) { m_hvos.AddRange(dlg.GetListOfIncludedSections()); } } }
/// <summary> /// In SE Fieldworks we can't depend upon ScrControls.dll We need some decoupling to /// prevent the linker from trying to load ScrControls.dll and crashing. /// This seems to work. (Although I wonder if we could get away with just calling this method /// if IsTEInstalled?) /// </summary> /// <param name="sender"></param> /// <param name="args"></param> private void LaunchFilterScrScriptureSectionsDialog(object sender, EventArgs args) { using (FilterScrSectionDialog dlg = new FilterScrSectionDialog(m_cache, m_scrHvos.ToArray())) { dlg.PruneToSelectedSections(m_hvoRoot); dlg.Text = ITextStrings.ksExportInterlinearizedScripture; dlg.TreeViewLabel = ITextStrings.ksSelectSectionsExported; if (dlg.ShowDialog() == DialogResult.OK) m_hvos.AddRange(dlg.GetListOfIncludedSections()); } }
protected bool OnAddScripture(object args) { CheckDisposed(); // get saved scripture choices if (m_interlinearTextsVh != null) { List<int> savedHvos = m_interlinearTextsVh.GetScriptureIds(); // Ensure we get a current view of the data. Cache.VwOleDbDaAccessor.UpdatePropIfCached(Cache.LangProject.TranslatedScriptureOAHvo, (int)Scripture.ScriptureTags.kflidScriptureBooks, (int)CellarModuleDefns.kcptOwningSequence, Cache.DefaultVernWs); using (FilterScrSectionDialog dlg = new FilterScrSectionDialog(Cache, savedHvos.ToArray())) { if (dlg.ShowDialog() == DialogResult.OK) { int[] hvosScriptureToAdd = dlg.GetListOfIncludedSections(); m_interlinearTextsVh.UpdateList(hvosScriptureToAdd); } } } return true; }