Example #1
0
 private void BaseForm_FormClosing(object sender, FormClosingEventArgs e)
 {
     Properties.Settings.Default.BaseForm          = WindowSave.SaveWindow(this);
     Properties.Settings.Default.InsertAnInlineTOC = cbCreateHtmlTOC.Checked;
     Properties.Settings.Default.Save();
     Preview.CloseOpenedForms();
     t.Abort();
     Zip.DeleteTemp();
 }
Example #2
0
        private Dictionary <string, string> SplitChapters()
        {
            if (cbSplit.Checked)
            {
                Utils.NewFilename(Variables.BackupDone);
                Preview.CloseOpenedForms();

                SplitChapters doc = new SplitChapters(GetFilenames(Model.Nodes, false));
                doc.UpdateFiles();
                Variables.ZipFileList      = new List <string>();
                Variables.FilesPathFromOPF = new List <string>();
                return(doc.list);
            }
            else
            {
                return(null);
            }
        }