Exemplo n.º 1
0
        private void DoBatchWork(BackgroundWorker worker, List <string> files, CompressionState state)
        {
            for (int i = 0; i < files.Count; i++)
            {
                CacheCompressor.HandleCompression(files[i], App.AssemblyStorage.AssemblySettings.DefaultDatabase, state);

                worker.ReportProgress((i + 1) * 100 / files.Count);
            }
        }
Exemplo n.º 2
0
 private void DoSingleWork(object sender, DoWorkEventArgs e)
 {
     e.Result = CacheCompressor.HandleCompression((string)e.Argument, App.AssemblyStorage.AssemblySettings.DefaultDatabase);
 }