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? }
public void Dispose() { if (RobustFile.Exists(PdfFilePath)) { try { RobustFile.Delete(PdfFilePath); } catch (Exception) { } } if (_epubMaker != null) { _epubMaker.Dispose(); _epubMaker = null; } GC.SuppressFinalize(this); }