Ejemplo n.º 1
0
        private void ButtonArchive_Click(object sender, EventArgs e)
        {
            foreach (var file in this.files)
            {
                StreamCoder.Compress(file.FullName);
            }

            this.richTextBoxChosedFiles.Clear();
            this.files.Clear();
            this.buttonCompress.Enabled = false;
            MessageBox.Show("All files are compresed!");
        }
Ejemplo n.º 2
0
        private void ButtonUnCompress_Click(object sender, EventArgs e)
        {
            foreach (var file in this.files)
            {
                StreamCoder.DeCompress(FileIO.ReadDeserialize(file.FullName), file.FullName);
            }

            this.richTextBoxChosedFiles.Clear();
            this.files.Clear();
            this.buttonUnCompress.Enabled = false;
            MessageBox.Show("All files was decompressed!");
        }