public RecoverOsisData() { holyBooks = new Scriptures(); inWJ = false; suspendedWJ = false; delayedVerse = 0; }
public async Task <IActionResult> OnGetAsync(int?id) { if (id == null) { return(NotFound()); } Scriptures = await _context.Scriptures.FirstOrDefaultAsync(m => m.ID == id); if (Scriptures == null) { return(NotFound()); } return(Page()); }
public async Task <IActionResult> OnPostAsync(int?id) { if (id == null) { return(NotFound()); } Scriptures = await _context.Scriptures.FindAsync(id); if (Scriptures != null) { _context.Scriptures.Remove(Scriptures); await _context.SaveChangesAsync(); } return(RedirectToPage("./Index")); }
/// <summary> /// Convert all USX files with .usx extensions in the given usxDir and directories /// below it to USFX in usfxFile. (Scanning directories below it is to /// allow a pure unzip of an ETEN DBL bundle to be put into the USX directory. /// </summary> /// <param name="usxDir">Directory containing .usx files</param> /// <param name="usfxFile">path and file name of USFX file to write</param> /// <returns></returns> public bool Convert(string usxDir, string usfxFile) { try { processedUsxBooks = string.Empty; scrp = new Scriptures(); scrp.OpenUsfx(usfxFile); ScanUsxDir(usxDir); scrp.CloseUsfx(); } catch (Exception ex) { Logit.WriteError("Error converting USX files in " + usxDir + " to " + usfxFile); Logit.WriteError(ex.Message); return(false); } return(true); }