Beispiel #1
0
        private void toEPubButton_Click(object sender, EventArgs e)
        {
            OpenFileDialog fd = CreateIndexPickupDialog();

            if (fd.ShowDialog(this) == DialogResult.OK)
            {
                // picked dump bzip file should place in the same folder.

                var archiver   = new EPubArchiver();
                var workingDir = GetWorkingDirectory(fd.FileNames[0], "ePub/", "*.html");
                DumpFileToArchive(fd.FileNames, archiver.Archive, Dumper.CreateHtmlGenerater, workingDir, ".epub", ".html");
            }
        }
Beispiel #2
0
        private void toEPubButton_Click(object sender, EventArgs e)
        {
            OpenFileDialog fd = CreateIndexPickupDialog();

            if (fd.ShowDialog(this) == DialogResult.OK)
            {
                // picked dump bzip file should place in the same folder.

                var archiver = new EPubArchiver();
                var workingDir = GetWorkingDirectory(fd.FileNames[0], "ePub/", "*.html");
                DumpFileToArchive(fd.FileNames, archiver.Archive, Dumper.CreateHtmlGenerater, workingDir, ".epub", ".html");
            }
        }