Ejemplo n.º 1
0
 public ZipWorker(string zipFilePath, string outDirPath, OnZipFinished finished, OnZipError error, OnZipProgress progress)
 {
     m_ZipFilePath             = zipFilePath;
     m_OutDirPath              = outDirPath;
     m_OnZipFinished           = finished;
     m_OnZipError              = error;
     m_OnZipProgress           = progress;
     m_Thread                  = new Thread(Work);
     m_IsFinish                = false;
     m_IsError                 = false;
     m_ErrorMsg                = "";
     m_FileTotalCount          = 0;
     m_FileCompletedCount      = 0;
     m_CurFileProcessByteCount = 0;
     m_CurFileTotalByteCount   = 0;
 }
Ejemplo n.º 2
0
        public void UnZip(string zipFilePath, string outDirPath, OnZipFinished finished, OnZipError error,
                          OnZipProgress progress)
        {
            ZipWorker worker = new ZipWorker(zipFilePath, outDirPath, finished, error, progress);

            worker.Start();
            mZipWorkerList.Add(worker);
        }