Changeset 1626


Ignore:
Timestamp:
1/21/2010 2:59:08 AM (2 years ago)
Author:
lowjoel
Message:

Removed unnecessary using declarations and fixed a sharing violation with the PostDataBuilder? class (due to an undisposed stream which I used when getting the Boundary property.) Addresses #307: Eraser Updater restructuring and addresses #308: Upgrade BlackBox? to use the ProgressManager? classes

Location:
branches/eraser6/CodeReview
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eraser6/CodeReview/Eraser.Util/PostDataBuilder.cs

    r1619 r1626  
    122122            set 
    123123            { 
    124                 if (Stream.Length != 0) 
    125                     throw new InvalidOperationException("The boundary cannot be set as data " + 
    126                         "already exists in the buffer."); 
     124                using (Stream stream = Stream) 
     125                    if (stream.Length != 0) 
     126                        throw new InvalidOperationException("The boundary cannot be set as data " + 
     127                            "already exists in the buffer."); 
    127128                boundary = value; 
    128129            } 
  • branches/eraser6/CodeReview/Eraser/BlackBoxUploadForm.cs

    r1622 r1626  
    3232 
    3333using ProgressChangedEventArgs = System.ComponentModel.ProgressChangedEventArgs; 
    34 using ProgressChangedEventHandler = System.ComponentModel.ProgressChangedEventHandler; 
    3534using EraserProgressChangedEventArgs = Eraser.Util.ProgressChangedEventArgs; 
    36 using EraserProgressChangedEventHandler = Eraser.Util.ProgressChangedEventHandler; 
    3735 
    3836namespace Eraser 
Note: See TracChangeset for help on using the changeset viewer.