Esempio n. 1
0
        private void autoSave()
        {
            string fn = mW.autosaveDir+"\\"+ mW.openFile.Substring(mW.openFile.LastIndexOf('\\')+1) + ".TranslateW.AUTOSAVE";

            toolStripStatusLabel2.Text = "Guardando " + fn + "...";
            //mW.SaveFile(fn);
            ZipSubtitleScript zips = new ZipSubtitleScript(mW.script);
            zips.SaveToZip(fn);

            toolStripStatusLabel2.Text = "[" + System.DateTime.Now.ToString() + "] " + fn + " guardado.";
        }
Esempio n. 2
0
 void AutoSave_Tick(object sender, EventArgs e)
 {
     string ts = openFile.Substring(openFile.LastIndexOf('\\') + 1);
     string s = autosaveDir + "\\" + ts + ".perrySub.AUTOSAVE";
     // script.SaveToFile(s);
     ZipSubtitleScript zipscript = new ZipSubtitleScript(script);
     zipscript.SaveToZip(s);
     setStatus("[ " + DateTime.Now.ToString() + " ] Archivo " + s + " guardado.");
 }
Esempio n. 3
0
        private void button7_Click(object sender, EventArgs e)
        {
            DirectoryInfo di = new DirectoryInfo(mW.autosaveDir);
            FileInfo[] fia = di.GetFiles("*.AUTOSAVE");

            foreach (FileInfo f in fia)
            {
                ZipSubtitleScript zipscript = new ZipSubtitleScript();
                zipscript.LoadFromFile(f.FullName);
                zipscript.SaveToZip(f.FullName);

                File.Delete(f.FullName);
            }

            MessageBox.Show(fia.Length + " archivos comprimidos.", "PerrySub", MessageBoxButtons.OK, MessageBoxIcon.Information);
        }