예제 #1
0
        void BackgroundUpload(object sender, DoWorkEventArgs e)
        {
            var book   = (Book.Book)e.Argument;
            var result = _bookTransferrer.FullUpload(book, _progressBox, _parentView, out _parseId);

            e.Result = result;
        }
예제 #2
0
 internal string UploadOneBook(BookInstance book, LogBox progressBox, PublishView publishView, string[] languages, bool excludeNarrationAudio, bool excludeMusic, out string parseId)
 {
     using (var tempFolder = new TemporaryFolder(Path.Combine("BloomUpload", Path.GetFileName(book.FolderPath))))
     {
         BookTransfer.PrepareBookForUpload(ref book, _publishModel.BookServer, tempFolder.FolderPath, progressBox);
         return(_transferrer.FullUpload(book, progressBox, publishView, languages, excludeNarrationAudio, excludeMusic, false, out parseId));
     }
 }
        void BackgroundUpload(object sender, DoWorkEventArgs e)
        {
            var book      = (Book.Book)e.Argument;
            var languages = _languagesFlow.Controls.Cast <CheckBox>().Where(b => b.Checked).Select(b => b.Tag).Cast <string>().ToArray();
            var result    = _bookTransferrer.FullUpload(book, _progressBox, _parentView, languages, out _parseId);

            e.Result = result;
        }
 internal string UploadOneBook(BookInstance book, LogBox progressBox, PublishView publishView, string[] languages, out string parseId)
 {
     return(_transferrer.FullUpload(book, progressBox, publishView, languages, out parseId));
 }