internal void PrepareToStageEpub() { if (EpubMaker != null) { //it has state that we don't want to reuse, so make a new one EpubMaker.Dispose(); EpubMaker = null; } EpubMaker = new EpubMaker(_thumbNailer, _isoloator); EpubMaker.Book = BookSelection.CurrentSelection; EpubMaker.Unpaginated = true; // Enhance: UI? }
internal void PrepareToStageEpub() { lock (_epubMakerLock) { if (EpubMaker != null) { //it has state that we don't want to reuse, so make a new one EpubMaker.Dispose(); EpubMaker = null; } EpubMaker = new EpubMaker(_thumbNailer, _bookServer); } EpubMaker.Book = _bookSelection.CurrentSelection; EpubMaker.Unpaginated = true; // Enhance: UI? EpubMaker.OneAudioPerPage = true; }
public void Dispose() { if (RobustFile.Exists(PdfFilePath)) { try { RobustFile.Delete(PdfFilePath); } catch (Exception) { } } if (EpubMaker != null) { EpubMaker.Dispose(); EpubMaker = null; } GC.SuppressFinalize(this); }