void thr_OnThreadIterationComplete(object sender, CompressionProgressChangedEventArgs e) { if (OnCompressionProgressChanged != null) { OnCompressionProgressChanged(this, e); } }
static void compressor_OnProgressChanged(object sender, CompressionProgressChangedEventArgs e) { totalReadBytes += e.ReadBytes; Console.WriteLine("{0} Kb", totalReadBytes / 1024); }