private void AddEpub() { var epubs = BrowseForEpub(true); var combiner = new EpubCombiner(epub); foreach (var e in epubs) { combiner.Add(e); } epub.RebuildImageUseIndexes(); PopulateListView(); PopulateThumbnails(); }
public static void CombineTwoEpubs() { var epub1 = new Epub(); var epub2 = new Epub(); try { epub1.ReadFile(@"E:\temp\work\zip\unpack\ccg\Cultivation Chat Group.c1313-1325.epub"); epub2.ReadFile(@"E:\temp\work\zip\unpack\ccg\Cultivation Chat Group.c1326-c1331.epub"); var combiner = new EpubCombiner(epub1); combiner.Add(epub2); epub1.WriteFile(@"E:\temp\work\zip\unpack\ccg\Cultivation Chat Group.c1313-c1331.epub"); } catch (Exception ex) { System.Diagnostics.Trace.WriteLine(ex.ToString()); MessageBox.Show(ex.ToString()); } }