Esempio n. 1
0
        public void Create_Archive_Click(object sender, EventArgs e)
        {
            create_archive();
            prBar f4 = new prBar();

            f4.Show();
        }
Esempio n. 2
0
        private void unzip()
        {
            string fn          = Path.GetFileNameWithoutExtension(saveFileDialog1.FileName);
            string dr          = Path.GetDirectoryName(saveFileDialog1.FileName);
            string tp          = Path.GetExtension(saveFileDialog1.FileName);
            string extractPath = Path.Combine(dr, fn + tp);

            ZipFile.ExtractToDirectory(zipPath, extractPath);
            prBar f4 = new prBar();

            f4.Show();
        }
Esempio n. 3
0
        public void add_to_archive()
        {
            using (FileStream zipToOpen = new FileStream(zipPath, FileMode.Open))
            {
                using (ZipArchive archive = new ZipArchive(zipToOpen, ZipArchiveMode.Update))
                {
                    ZipArchiveEntry readmeEntry = archive.CreateEntry(file);
                }
            }
            prBar f4 = new prBar();

            f4.Show();
        }