Exemplo n.º 1
0
 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?
 }
Exemplo n.º 2
0
        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;
        }
Exemplo n.º 3
0
        public void Dispose()
        {
            if (RobustFile.Exists(PdfFilePath))
            {
                try
                {
                    RobustFile.Delete(PdfFilePath);
                }
                catch (Exception)
                {
                }
            }
            if (EpubMaker != null)
            {
                EpubMaker.Dispose();
                EpubMaker = null;
            }

            GC.SuppressFinalize(this);
        }