예제 #1
0
파일: ZipMgr.cs 프로젝트: moto2002/Hunter
        public void UnZip(string zipFilePath, string outDirPath, OnZipFinished finished, OnZipError error, OnZipProgress progress)
        {
            ZipWorker worker = new ZipWorker(zipFilePath, outDirPath, finished, error, progress);

            worker.Start();
            m_ZipWorkerList.Add(worker);
        }
예제 #2
0
파일: ZipMgr.cs 프로젝트: moto2002/Hunter
 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;
 }