Ignore:
Timestamp:
2/8/2010 6:44:59 AM (2 years ago)
Author:
lowjoel
Message:

Removed the TaskProcessing? and TaskProcessed? events in Executor which duplicate the TaskStarted? and TaskFinished? events in Task. The TaskEventArgs? class can't disappear just yet as the TaskAdded? and TaskDeleted? events still need them (the sender is not the task, it's the executor) Addresses #275: Code Review

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eraser6/CodeReview/Eraser/ProgressForm.cs

    r1745 r1765  
    8989        } 
    9090 
    91         private void task_TaskFinished(object sender, TaskEventArgs e) 
     91        private void task_TaskFinished(object sender, EventArgs e) 
    9292        { 
    9393            if (IsDisposed || !IsHandleCreated) 
     
    9595            if (InvokeRequired) 
    9696            { 
    97                 Invoke((EventHandler<TaskEventArgs>)task_TaskFinished, sender, e); 
     97                Invoke((EventHandler)task_TaskFinished, sender, e); 
    9898                return; 
    9999            } 
    100100 
    101101            //Update the UI. Set everything to 100% 
     102            Task task = (Task)sender; 
    102103            timeLeft.Text = item.Text = pass.Text = string.Empty; 
    103104            overallProgressLbl.Text = S._("Total: {0,2:#0.00%}", 1.0); 
     
    109110            //Inform the user on the status of the task. 
    110111            LogLevel highestLevel = LogLevel.Information; 
    111             LogEntryCollection entries = e.Task.Log.LastSessionEntries; 
     112            LogEntryCollection entries = task.Log.LastSessionEntries; 
    112113            foreach (LogEntry log in entries) 
    113114                if (log.Level > highestLevel) 
Note: See TracChangeset for help on using the changeset viewer.