Example #1
0
        private void onCompletedFile(object sender, ICSharpCode.SharpZipLib.Core.ScanEventArgs e)
        {
            string         fileName = e.Name;
            SourceFileInfo file     = new SourceFileInfo(System.IO.Path.Combine((_fileActionInfo as SourceTargetFilterFileInfo).TargetPath, fileName.Replace('/', System.IO.Path.DirectorySeparatorChar)));

            files.Add(file);
            _isExecuted = true;
            int    pos  = fileName.LastIndexOf('/');
            string path = "";

            if (pos > 0 && pathDepth(fileName) <= 1)
            {
                path = fileName.Substring(0, pos + 1);
                if (!directories.ContainsKey(path))
                {
                    directories.Add(path, new SourceFileInfo(System.IO.Path.Combine((_fileActionInfo as SourceTargetFilterFileInfo).TargetPath, path.Replace('/', System.IO.Path.DirectorySeparatorChar))));
                }
            }
        }
Example #2
0
 private void UnzipCompleted(object sender, ICSharpCode.SharpZipLib.Core.ScanEventArgs e)
 {
     //this.labStatus.Text = String.Format("正在解压:{0},已完成。", e.Name);
     Console.WriteLine(String.Format("正在解压:{0},已完成。", e.Name));
 }
Example #3
0
 private void onCompletedFile(object sender, ICSharpCode.SharpZipLib.Core.ScanEventArgs e)
 {
 }
Example #4
0
 private void UnzipCompleted(object sender, ICSharpCode.SharpZipLib.Core.ScanEventArgs e)
 {
     UpdateStatusCallback?.Invoke(String.Format("正在解压:{0},已完成。", e.Name), -1);
 }