Ejemplo n.º 1
0
 // 子线程调用
 protected override void Execute()
 {
     try
     {
         InitUnZip();
         ProcessUnZip();
     } catch
     {
         // 失败
         Status = UnZipStatus.uzFail;
         Abort();
     }
 }
Ejemplo n.º 2
0
        private void ProcessUnZip()
        {
            if (m_Stream != null)
            {
                Status = UnZipStatus.uzDoing;
                ZipEntry theEntry;
                while ((theEntry = m_Stream.GetNextEntry()) != null)
                {
                    //      Logger.StartTime ();
                    UnzipOneFile(theEntry, m_Stream, m_ExportDir, true);
                    //    Logger.StopTime (theEntry.Name);

                    //          System.Threading.Thread.Sleep (1);
                }

                Status = UnZipStatus.uzOk;
                // 退出线程
                Abort();
            }
        }