Exemple #1
0
        private void Worker_DoWork(object sender, DoWorkEventArgs e)
        {
            int     i   = 0;
            DirTool dir = new DirTool();

            foreach (string dirName in _dirs)
            {
                if (dir.IsPicturesFolder(dirName))
                {
                    dir.createZip(dirName);
                    i++;
                    _backgroundWorker.ReportProgress(i);
                }
            }
        }