Ignore:
Timestamp:
6/19/2010 2:48:37 AM (2 years ago)
Author:
lowjoel
Message:

Allow tasks to report that their progress is indeterminate, and reflect this in the UI appropriately.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/eraser/Eraser/SchedulerPanel.cs

    r2141 r2203  
    231231            //Update the progress bar 
    232232            ErasureTarget target = (ErasureTarget)sender; 
    233             schedulerProgress.Value = (int)(target.Task.Progress.Progress * 1000.0); 
     233            SteppedProgressManager progress = target.Task.Progress; 
     234            schedulerProgress.Style = progress.ProgressIndeterminate ? 
     235                ProgressBarStyle.Marquee : ProgressBarStyle.Continuous; 
     236             
     237            if (!progress.ProgressIndeterminate) 
     238                schedulerProgress.Value = (int)(progress.Progress * 1000.0); 
    234239        } 
    235240 
Note: See TracChangeset for help on using the changeset viewer.