public void MergeDAISY2DTDs() { m_RequestedForCancel = false; m_ProgressInfo = 0; List <string> inputParameterList = CopyAllDTDsToOutputDirectory(false); if (m_RequestedForCancel) { return; } RenameInputDTBs(inputParameterList, false); if (m_RequestedForCancel) { return; } m_ProgressInfo = 70; Integrator integrator = new Integrator(inputParameterList, m_PageMergeOptions); integrator.IntegrateDAISY2_02DTBs(); m_ProgressInfo = 90; // delete temporary directories, all directories excluding first directory in list for (int i = 1; i < inputParameterList.Count; i++) { string dirPathToDelete = Directory.GetParent(inputParameterList[i]).FullName; Directory.Delete(dirPathToDelete, true); } m_ProgressInfo = 100; }
public void MergeDTDs() { m_RequestedForCancel = false; m_ProgressInfo = 0; List <string> inputParameterList = CopyAllDTDsToOutputDirectory(true); if (m_RequestedForCancel) { return; } /* * int alphabetCounter = 1 ; * * for (int i = 0; i < inputParameterList.Count; i++) * { * string prefix = Convert.ToChar ( ((int)'a') + i ).ToString (); * prefix = prefix + alphabetCounter.ToString () + "_"; * //MessageBox.Show ( prefix.ToString () ); * * Renamer renamer = new Renamer ( inputParameterList[i], prefix ); * renamer.RenameDAISY3FilesSet(); * * if ( (i + 1 ) % 26 == 0) alphabetCounter++; * } */ RenameInputDTBs(inputParameterList, true); if (m_RequestedForCancel) { return; } m_ProgressInfo = 70; Integrator integrator = new Integrator(inputParameterList, m_PageMergeOptions); integrator.CanRemoveDuplicatePagesInDAISY3 = CanRemoveDuplicatePagesInDAISY3; integrator.IntegrateDAISY3DTBs(); m_ProgressInfo = 90; // delete temporary directories, all directories excluding first directory in list for (int i = 1; i < inputParameterList.Count; i++) { string dirPathToDelete = Directory.GetParent(inputParameterList[i]).FullName; Directory.Delete(dirPathToDelete, true); } m_ProgressInfo = 100; }