Changeset 1572


Ignore:
Timestamp:
1/18/2010 7:31:09 AM (5 years ago)
Author:
lowjoel
Message:

Moved the ProgressManager? classes to Eraser.Util. Addresses #284: Eraser.Util rewrite

Location:
branches/eraser6/CodeReview
Files:
6 edited
1 moved

Legend:

Unmodified
Added
Removed
  • branches/eraser6/CodeReview/Eraser.Manager/Eraser.Manager.csproj

    r1539 r1572  
    6161    <Compile Include="Plugins.cs" /> 
    6262    <Compile Include="PRNG.cs" /> 
    63     <Compile Include="ProgressManager.cs" /> 
    6463    <Compile Include="Properties\AssemblyInfo.cs" /> 
    6564    <Compile Include="RemoteExecutor.cs" /> 
  • branches/eraser6/CodeReview/Eraser.Manager/Task.cs

    r1528 r1572  
    2626using System.Text.RegularExpressions; 
    2727using System.Runtime.Serialization; 
    28 using System.ComponentModel; 
    29 using Eraser.Util; 
    3028using System.Security.Permissions; 
    3129using System.Threading; 
     30 
     31using Eraser.Util; 
    3232 
    3333namespace Eraser.Manager 
  • branches/eraser6/CodeReview/Eraser.Util/Eraser.Util.csproj

    r1568 r1572  
    8686    <Compile Include="NativeMethods\Gdi.cs" /> 
    8787    <Compile Include="NativeMethods\Sfc.cs" /> 
     88    <Compile Include="ProgressManager.cs" /> 
    8889    <Compile Include="Win32ErrorCodes.cs" /> 
    8990  </ItemGroup> 
  • branches/eraser6/CodeReview/Eraser.Util/ProgressManager.cs

    r1568 r1572  
    2222using System; 
    2323using System.Collections.Generic; 
    24 using System.Linq; 
    2524using System.Text; 
    2625 
    27 namespace Eraser.Manager 
     26namespace Eraser.Util 
    2827{ 
    2928    /// <summary> 
  • branches/eraser6/CodeReview/Eraser/ProgressForm.cs

    r1571 r1572  
    2222using System; 
    2323using System.Collections.Generic; 
    24 using System.ComponentModel; 
    2524using System.Data; 
    2625using System.Drawing; 
     
    3130using Eraser.Util; 
    3231using System.Globalization; 
    33 using ProgressChangedEventArgs = Eraser.Manager.ProgressChangedEventArgs; 
    3432 
    3533namespace Eraser 
  • branches/eraser6/CodeReview/Eraser/SchedulerPanel.cs

    r1571 r1572  
    3535using System.Runtime.Serialization; 
    3636using System.ComponentModel; 
    37 using ProgressChangedEventArgs = Eraser.Manager.ProgressChangedEventArgs; 
     37using ProgressChangedEventArgs = Eraser.Util.ProgressChangedEventArgs; 
    3838 
    3939namespace Eraser 
  • branches/eraser6/CodeReview/Eraser/UpdateForm.cs

    r1571 r1572  
    3636using System.Globalization; 
    3737 
     38using ProgressChangedEventArgs = System.ComponentModel.ProgressChangedEventArgs; 
     39 
    3840namespace Eraser 
    3941{ 
     
    540542            using (MemoryStream memoryStream = new MemoryStream()) 
    541543            { 
    542                 Manager.ProgressManager progress = new Manager.ProgressManager(); 
     544                Util.ProgressManager progress = new Util.ProgressManager(); 
    543545                progress.Total = response.ContentLength; 
    544546 
     
    671673            int currUpdate = 0; 
    672674            Dictionary<string, UpdateInfo> tempFilesMap = new Dictionary<string, UpdateInfo>(); 
    673             Manager.SteppedProgressManager progress = new Manager.SteppedProgressManager(); 
     675            Util.SteppedProgressManager progress = new Util.SteppedProgressManager(); 
    674676            foreach (UpdateInfo update in downloadQueue) 
    675677            { 
     
    677679                { 
    678680                    //Add the update to the overall progress. 
    679                     Manager.ProgressManager step = new Eraser.Manager.ProgressManager(); 
    680                     progress.Steps.Add(new Manager.SteppedProgressManager.Step( 
     681                    Util.ProgressManager step = new Eraser.Util.ProgressManager(); 
     682                    progress.Steps.Add(new Util.SteppedProgressManager.Step( 
    681683                        step, 1.0f / downloadQueue.Count)); 
    682684 
     
    755757        public void InstallUpdates(object value) 
    756758        { 
    757             Manager.ProgressManager progress = new Manager.ProgressManager(); 
     759            Util.ProgressManager progress = new Util.ProgressManager(); 
    758760            Dictionary<string, UpdateInfo> tempFiles = (Dictionary<string, UpdateInfo>)value; 
    759761            Dictionary<string, UpdateInfo>.KeyCollection files = tempFiles.Keys; 
Note: See TracChangeset for help on using the changeset viewer.