示例#1
0
 private void extractor_Extracting(object sender, SevenZip.ProgressEventArgs e)
 {
     Invoke((MethodInvoker) delegate
     {
         pbProgress.Value = e.PercentDone;
         lblStatus.Text   = "Status: Extracting...";
     });
 }
 /// <summary>
 /// Event proxy for Compressing.
 /// </summary>
 /// <param name="sender">The sender of the event.</param>
 /// <param name="e">The event arguments.</param>
 private void CompressingEventProxy(object sender, ProgressEventArgs e)
 {
     OnEvent(Compressing, e, false);
 }
示例#3
0
文件: Unzip.cs 项目: b43r/deploynet
 /// <summary>
 /// Provide progress of file extration.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void extractor_Extracting(object sender, SevenZip.ProgressEventArgs e)
 {
     OnProgress(e.PercentDone);
 }
示例#4
0
 private void Compressing(object sender, ProgressEventArgs e)
 {
     this.progressNotifier.UpdateProgress(ProgressStage.CreatingArchive, 100, e.PercentDone);
 }
示例#5
0
 /// <summary>
 /// Provide progress of file compression.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void compressor_Compressing(object sender, SevenZip.ProgressEventArgs e)
 {
     OnProgress(e.PercentDone);
 }
示例#6
0
        //private void ExtractFileCallback(ExtractFileCallbackArgs extractfilecallbackargs)
        //{
        //    extractfilecallbackargs.CancelExtraction
        //}

        private void ArchiveFileOnExtracting(object sender, SevenZip.ProgressEventArgs e)
        {
            _notifier.Notify(PopstationEventEnum.DecompressProgress, e.PercentDone);
        }
 /// <summary>
 /// Event proxy for Extractng.
 /// </summary>
 /// <param name="sender">The sender of the event.</param>
 /// <param name="e">The event arguments.</param>
 private void ExtractingEventProxy(object sender, ProgressEventArgs e)
 {
     OnEvent(Extracting, e, false);
 }
        private void Compressing(object sender, ProgressEventArgs e)
        {
            foreach (string item in _fileAndDirectoryFullPaths)
            {
                if (item.EndsWith(CurFileString))
                {
                    CurrentFile = new FileInfo(item);
                }
            }

            //increes percentage from progressbar.
            pb_compression.Invoke(new ProgressEvent((object o, ProgressEventArgs l) =>
            {
                int FileProcentDone = (int)(((float)l.PercentDelta / (float)CurrentFile.Length) * 100);
                pb_compression.Value += FileProcentDone;
            }), sender, e);
        }
示例#9
0
 void extractor_Extracting(object sender, ProgressEventArgs e)
 { probar.Value = e.PercentDone; }
示例#10
0
 private void compressor_Compressing(object sender, ProgressEventArgs e)
 {
     if (InvokeRequired)
     {
         Invoke(new MethodInvoker(() => this.EnableCreateButton(false)));
     }
     else
     {
         this.buttonCreateNew.Enabled = false;
     }
 }
示例#11
0
 void extr_Extracting(object sender, ProgressEventArgs e)
 {
     pb_ExtractProgress.Increment(e.PercentDelta);
     pb_ExtractProgress.Refresh();
 }
示例#12
0
 void cmp_Compressing(object sender, ProgressEventArgs e)
 {
     pb_CompressProgress.Increment(e.PercentDelta);
 }
示例#13
0
 void extr_Extracting(object sender, ProgressEventArgs e)
 {
     pb_Extract1.Value += e.PercentDelta;
 }
示例#14
0
 void cmp_Compressing(object sender, ProgressEventArgs e)
 {
     pb_Compress.Value += (e.PercentDelta);
 }
示例#15
0
文件: io.cs 项目: Gabisonfire/norar
 // Event handler to display progress progress
 private static void Zip_Extracting(object sender, ProgressEventArgs e)
 {
     if (e.PercentDone < 10)
         Console.Write("\b\b{0}%", e.PercentDone);
     else
         Console.Write("\b\b\b{0}%", e.PercentDone);
 }
示例#16
0
 void extr_Extracting(object sender, ProgressEventArgs e)
 {
     StatusProgressBar.Value += e.PercentDelta;
 }
示例#17
0
		/// <summary>
		/// Handles the <see cref="SevenZipExtractor.Extracting"/> event of the extractor that is
		/// extracting the compressed files blocks.
		/// </summary>
		/// <param name="sender">The object that raised the event.</param>
		/// <param name="e">An <see cref="ProgressEventArgs"/> describing the event arguments.</param>
		private void szeZip_Extracting(object sender, ProgressEventArgs e)
		{
			UpdateFileStreamExtractionProgress(e.PercentDone / 100);
		}
示例#18
0
 private void cmp_Compressing(object sender, ProgressEventArgs e)
 {
     StatusProgressBar.Value += (e.PercentDelta);
 }
示例#19
0
 private void OnExtracting(ProgressEventArgs e)
 {
     if (Extracting != null)
     {
         Extracting(this, e);
     }
 }
示例#20
0
 private void OnCompressing(ProgressEventArgs e)
 {
     if (Compressing != null)
     {
         Compressing(this, e);
     }
 }
 void extractor_Extracting(object sender, ProgressEventArgs e)
 {
     //throw new NotImplementedException();
 }
示例#22
0
        static private void cmp_Compressing(object sender, ProgressEventArgs e) {

        }