private void button_zip_Click(object sender, EventArgs e) { CZipHelper test = new CZipHelper(); string src = @"D:\Tool\Git"; string tar = @"D:\test\test.zip"; test.Compress(src, tar); }
private void ThreadFunc() { m_ZipHelper = new CZipHelper(); EventHandler <ZipReportEventArgs> newHandler = new EventHandler <ZipReportEventArgs>(ReportEvent); m_ZipHelper.SetDecompressEvent(newHandler); string src = this.textBox_src.Text; string tar = this.textBox_tar.Text; m_ZipHelper.Decompress(src, tar, false); }