void OnWorkProgress(object sender, WorkProgressEventArgs e)
        {
            int total     = _workList.Count * 100;
            int completed = completedWork * 100 + (sender as IExWork).PercentCompleted;

            ReportProgress(total, completed, e.File);
        }
 protected static void OnWorkProgress(object sender, WorkProgressEventArgs e)
 {
     if (!GetIsMuted((sender as IWork).ID))
     {
         if (WorkProgress != null)
         {
             WorkProgress(sender, e);
         }
     }
 }
Exemple #3
0
 protected bool ReportWork(WorkProgressEventArgs e)
 {
     if (_aborted)
     {
         return(false);
     }
     else
     if (WorkProgress != null)
     {
         WorkProgress(this, e);
         if (e.Cancel)
         {
             Abort();
         }
         return(!e.Cancel);
     }
     return(true);
 }
Exemple #4
0
 protected bool ReportWork(WorkProgressEventArgs e)
 {
     if (_aborted)
         return false;
     else
         if (WorkProgress != null)
         {
             WorkProgress(this, e);
             if (e.Cancel)
                 Abort();
             return !e.Cancel;
         }
     return true;
 }
 protected static void OnWorkProgress(object sender, WorkProgressEventArgs e)
 {
     if (!GetIsMuted((sender as IWork).ID))
         if (WorkProgress != null)
             WorkProgress(sender, e);
 }
 void OnWorkProgress(object sender, WorkProgressEventArgs e)
 {
     int total = _workList.Count * 100;
     int completed = completedWork * 100 + (sender as IExWork).PercentCompleted;
     ReportProgress(total, completed, e.File);
 }