Example #1
0
        /// ------------------------------------------------------------------------------------
        /// <summary>
        /// Exports to the specified Scripture books to pathway.
        /// (Called from Paratext by Reflection.)
        /// </summary>
        /// <param name="usxBooksToExport">The XML document representation of the Scripture
        /// books in USFM file.</param>
        /// ------------------------------------------------------------------------------------
        // ReSharper disable UnusedMember.Global
        public void ExportToPathway(List <XmlDocument> usxBooksToExport)
        // ReSharper restore UnusedMember.Global
        {
            DialogResult result;

            if (!Common.Testing)
            {
                ScriptureContents dlg = new ScriptureContents();
                dlg.DatabaseName = MDatabaseName;
                result           = dlg.ShowDialog();
                if (result != DialogResult.Cancel)
                {
                    ExportProcess(usxBooksToExport, dlg.PublicationName, dlg.Format, dlg.OutputLocationPath, result);
                }
            }
            else
            {
                result = new DialogResult();
                ExportProcess(usxBooksToExport, MPublicationName, MFormat, MOutputLocationPath, result);
            }
        }
 /// ------------------------------------------------------------------------------------
 /// <summary>
 /// Exports to the specified Scripture books to pathway.
 /// (Called from Paratext by Reflection.)
 /// </summary>
 /// <param name="usxBooksToExport">The XML document representation of the Scripture 
 /// books in USFM file.</param>
 /// ------------------------------------------------------------------------------------
 // ReSharper disable UnusedMember.Global
 public void ExportToPathway(List<XmlDocument> usxBooksToExport)
 // ReSharper restore UnusedMember.Global
 {
     DialogResult result;
     if (!IsTesting)
     {
         ScriptureContents dlg = new ScriptureContents();
         dlg.DatabaseName = MDatabaseName;
         result = dlg.ShowDialog();
         if (result != DialogResult.Cancel)
         {
             ExportProcess(usxBooksToExport, dlg.PublicationName, dlg.Format, dlg.OutputLocationPath, result);
         }
     }
     else
     {
         result = new DialogResult();
         ExportProcess(usxBooksToExport, MPublicationName, MFormat, MOutputLocationPath, result);
     }
 }