private void toPdfButton_Click(object sender, EventArgs e) { OpenFileDialog fd = CreateIndexPickupDialog(); if (fd.ShowDialog(this) == DialogResult.OK) { var archiver = new PdfArchiver(); var workingDir = GetWorkingDirectory(fd.FileNames[0], "pdf", "*.wiki"); DumpFileToArchive(fd.FileNames, archiver.Archive, Dumper.CreateRawDumper, workingDir, ".pdf", ".wiki"); } }