Exemplo n.º 1
0
 private void copyier_FileCopyProgressEvent(object sender, FileProgressEventArgs e)
 {
     this.pinfo._lFilePercent.Dispatcher.BeginInvoke(System.Windows.Threading.DispatcherPriority.Normal,
                                                     (Action)(() =>
     {
         this.pinfo._lFilePercent.Text = "(" + ((int)e.Progress).ToString() + "%)";
     }));
 }
Exemplo n.º 2
0
 private void Port_FileProgress(object sender, FileProgressEventArgs e)
 {
     this.label1.Text          = e.FName + ": " + e.Bytes.ToString() + " / " + e.Size.ToString();
     this.progressBar1.Maximum = e.Size;
     if (e.Bytes > e.Size)
     {
         e.Bytes = e.Size;
     }
     this.progressBar1.Value = e.Bytes;
     this.progressBar1.Invalidate();
     Application.DoEvents();
 }
Exemplo n.º 3
0
        private void Processor_Processed(object sender, FileProgressEventArgs e)
        {
            Debug.WriteLine(e.Message);

            File.Delete(e.Name);
        }
        private void Processor_Processed(object sender, FileProgressEventArgs e)
        {
            base.Consumer.Consume(e.Message);

            this._filesToDelete.Add(e.Name);
        }